How flush my Combo

  • Thread starter Thread starter madhavi
  • Start date Start date
M

madhavi

Hi

I just wanted to Know is there any function like refresh to refresh the
Combo,

my Requirement says that i change the value in the combo1
then combo2 must reflect the values according the combo1's selection.

but Combo2 is showing the previous values available for Combo1.


my Combo has only 3 events
GOT Focus
LOST Focus
Validate

Combo1.clear does not work
Combo1.index=-1 also does not work

there is not TextChange event associated

Could U Please Help
 
Madhavi,

What do you mean your combobox has only these three events. The comboboxes
in Windows Forms has plenty of events (whether they works as they suppose to
or not :)) In paricular there is an event called SelectedIndexChanged, which
is fired as the user picks a new value.

As long as it goes for the Clear method the ComboBox class doesn't have a
clear method on this level. You should use ComboBox.Items.Clear()

BTW, are we talking windows forms' ComboBox class here?
 
Back
Top