I want to Add Values to my combobox in Datareader.
This is my code,
Command = New MySqlCommand("SELECT * FROM tableName WHERE id = '" & id & "')
Command.CommandTimeout = 30
dr = Command.ExecuteReader()
If Reader.HasRows = True Then
While Reader.Read()
cmb.Items(dr(0))
End While
End If
I have tried adding it this way but it is not working.
please check this
cmb.Items.add(dr(0)).And be precise in your questions.