- Messages
- 608
- Reaction score
- 0
- Points
- 26
Unregistered = 3 Limits of Download
Registered = Unlimited ata
By the way guys, pa help naman nito
I have 1 combox and 1 textbox
If the combobox select "Notebook" then on the textbox it must be display the corresponding itemStock (3)
Please
http://i.imgur.com/JRZ2ojP.png
This is my simple code for calling items on my combox
Code: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
try it this para hindi mo na need magloop..
need mo lng DISPLAYMEMBER and VALUEMEMBER Property ng Combobox
Code:
DataAdapter.fill(Dataset,0)
Combobox.DataSource=Dataset.Tables(0)
Combobox.ValueMember="PK OF TABLE"
Combobox.DisplayMember="Field to be Displayed"
Code:
varID=Combobox.SelectedValue.tostring()
then requery to get the stock number
Code:
Select StockNumber From table Where id=@id
rough code lng yan...