How flush my Combo

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
 
S

Stoitcho Goutsev \(100\) [C# MVP]

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top