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.
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.