I have two combo boxes
when I use this in the form load event
one on the top gets populated ,other does not...why this is happening?And if I put the second one on the top, it get's populated,other one does not.
when I use this in the form load event
one on the top gets populated ,other does not...why this is happening?And if I put the second one on the top, it get's populated,other one does not.
Code:
'add items to combo
Me.Esic_combo.Items.Add("Down Town")
Me.Esic_combo.Items.Add("Upper Road")
Me.Esic_combo.Items.Add("Center Hall")
Me.Esic_combo.Items.Add("Up Town")
Me.Esic_combo.SelectedIndex = 0
'select last item
Me.Esic_combo.SelectedIndex = Me.Esic_combo.Items.Count + 1
'add items to combo
Me.EPF_Combo_off.Items.Add("Toronto")
Me.EPF_Combo_off.Items.Add("London")
Me.EPF_Combo_off.Items.Add("New Delhi")
Me.EPF_Combo_off.Items.Add("Amstradam")
Me.EPF_Combo_off.SelectedIndex = 0
'select last item
Me.EPF_Combo_off.SelectedIndex = Me.EPF_Combo_off.Items.Count + 1