i have a problem.. please help me..I have only one combo box and i want my combo box to have its value and i want to get it's value from my database??? how can i get that?? please help me to do this. thanks. here is my code please help me to fix this.


con.Open()
cmd.CommandText = "Select Description from Type where Description = Description "

cmd.Connection = con
Dim reader As SqlDataReader = cmd.ExecuteReader
While reader.Read

ComboBox1.SelectedItem = reader("Description")

End While

Frnd tell me one thing u want to select item from combobox or u want to add the item to the combobox,dat u retrieve from the database

i have a problem.. please help me..I have only one combo box and i want my combo box to have its value and i want to get it's value from my database??? how can i get that?? please help me to do this. thanks. here is my code please help me to fix this.


con.Open()
cmd.CommandText = "Select Description from Type where Description = Description "

cmd.Connection = con
Dim reader As SqlDataReader = cmd.ExecuteReader
While reader.Read

ComboBox1.SelectedItem = reader("Description")

End While

Try this...

ComboBox1.Text = reader("Description")

try this

combox1.items.add(reader.getstring(0))