Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27389

Populating a Combobox - What's the Best Way?

$
0
0
Is there a preferred way to populate a combobox in VB.NET ?

I'm relatively new to .NET (although fluent in VB 6.0), and I'm trying to write an add on to an existing program. The add on is simply to filter the items in a treeview control.

For example, when the user selects "Johnny B. Goode" from the combobox, I want to see only Johnny's items in the treeview. There is an existing dataset in the application that queries the "user" table, so I'm assuming I could use that to populate the combobox which contains a list of users. I also see an option to create "SQL" in the control.

What's the best way, or does it really matter?

I'd like to get it setup so it puts the user name in the combobox and then the "ID" into the .tag property.

Viewing all articles
Browse latest Browse all 27389

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>