Reputation: 11
How can I monitor a ComboBox for changes?
The SelectedIndexChanged event only firnges when selection is changed by choosing a different value from the combobox, I would like to monitor chaes when the selection is manually deleted and no value was chosen.
Thanks in advance!
Upvotes: 0
Views: 5006
Reputation: 2279
You can select to Indexchange or Valuechange or Textchange
Then, you can try to put some code. Like record it for every change.
like adding below code to the Valuechange
listbox1.items.add = combobox1.selecteditem
Of course you must made the visible to false
Upvotes: 0
Reputation: 9888
Easy, simply use the event TextChanged
:
Occurs when the Text property value changes.
See the MSDN Documentation about it.
Upvotes: 2
Reputation: 13960
Just extend combobox class and override SelectedIndexChange event to fit your needs.
Upvotes: 0