i have a two dimentional array for items and prices in vb.net:
Dim items(,) As String = {{"Chicken Sand", "9000"}, {"Roast Beef Sand", "13500"},
{"Salmon Sand", "13500"}, {"Tuna Sand", "11000"},
{"Halloumi Sandwich", "7000"}, {"Ham & Cheese Sand", "8000"},
{"Water", "1500"}, {"Soft Drink", "2500"},
{"Fresh Lemonade", "3000"}, {"Fresh Orange", "3500"}}
I want to fill a combobox with items from this array and when each item from the combobox is selected I want that the price will be displayed in a textbox specific for the price. I reached:
For row = 0 To items.GetUpperBound(0)
cbitem.Items.Add(items(row, 0))
Next`