hey all...
a quick question regarding binding an array to comboboxes.
i have mutilple comboboxes which will contain the hours and minutes
so i've create 2 arrays, one containing the hours and one containing the minutes
Code:Dim l_hours As String() = {"00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"}
so i want to assign the hours to several comboboxes. I do this by:
however whatever value i select in cbo1 it is set in cbo2 aswell.Code:cbo1.DataSource = l_hours cbo1.SelectedIndex = -1 cbo2.DataSource = l_hours cbo2.SelectedIndex = -1
eg: i select 10 from the dropdown in cbo1, when this is selected 10 becomes the selected value in cbo2.
can someone explain this to me... there something im not doing right here





Reply With Quote