vb.net – 将不同的数据插入Combobox列表

前端之家收集整理的这篇文章主要介绍了vb.net – 将不同的数据插入Combobox列表前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我只想问一下如何将我的独特数据插入我的组合框中?

dim query as string
query = "SELECT DISTINCT Department FROM tblEmployees" 

comboBox1.text = ????

谢谢!

dim query as string
query = "SELECT DISTINCT Department FROM tblEmployees" 

Me.ComboBox1.RowSource = query
Me.ComboBox1.Refresh
原文链接:https://www.f2er.com/vb/255864.html

猜你在找的VB相关文章