ComboBox Changing?

  • Thread starter Thread starter Chris S
  • Start date Start date
C

Chris S

Hi, I was hoping to catch an event when a ComboBox is changing, then prompt
the user indide the event's code, and if the user cancels, then I want to
cancel the change in the combo, something like Cancel = True, but the combo
events like "SelectedIndexChanged" don't fire with a parameter that
resembles something that can be canceled.

Thanks.
 
* "Chris S said:
Hi, I was hoping to catch an event when a ComboBox is changing, then prompt
the user indide the event's code, and if the user cancels, then I want to
cancel the change in the combo, something like Cancel = True, but the combo
events like "SelectedIndexChanged" don't fire with a parameter that
resembles something that can be canceled.

You will have to store the old value whenever 'SelectedIndexChanged' is
raised. Later you can use this value to reset the selection to if the
user wants to cancel the change.
 
Back
Top