KoolKabin
KoolKabin

Reputation: 17643

Which Control can is equvalent to databound list combox box of vb6 in vb.net windows form application

I think there should a control like databound list control of vb6 in vb.net windows form application too which can show up data from database.

I have confused and staring my database applications in vb.net....

so can you suggest which control can be used?

Upvotes: 0

Views: 315

Answers (2)

KoolKabin
KoolKabin

Reputation: 17643

Both List control and combobox control can be used for it. for that we need to set the datasource property and refresh it.

like

cmbbox.datasource = arraylist("item 1","item 2", "item 3") cmbbox.refresh();

detail can be found in msdn: http://msdn.microsoft.com/en-us/library/system.windows.forms.listcontrol.displaymember.aspx

Upvotes: -1

Clément
Clément

Reputation: 12897

You can also bind lists in VB.Net, see the (DataBindings) field.

Upvotes: 0

Related Questions