Click here to Skip to main content
15,115,960 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can add data to combobox in form vb,net 2008 from table sql server 2005 from another table of form and please using images for solution ?
Posted

1 solution

VB
Dim dt as new Datatable

'fill the datatable using query
'Select id,Data from table

VB
combo1.DataSource = dt
combo1.DisplayMember = "Data"
combo1.ValueMember = "ID"
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900