Hello, help me please. I have a db sample ( http://i.imgur.com/JRZ2ojP.png )
I have 1 combobox and 1 textbox
If the combobox select "Notebook" then on the textbox it must be display the corresponding itemStock (3)
Please :(
By the this my simple code for my combobox
Try
Query = "SELECT * FROM tbl_items"
MySqlCommand = New MySqlCommand(Query, CNN)
MySqlDataReader = MySqlCommand.ExecuteReader
combItems.Items.Clear()
Do While MySqlDataReader.Read
combItems.Items.Add(MySqlDataReader(1))
Loop
End If
Catch ex As Exception
MessageBox.Show(ex.ToString, "Message", MessageBoxButtons.OK, MessageBoxIcon.Error)
Finally
MySqlDataReader.Close()
End Try