How to cancel ComboBox choice..

  • Thread starter Thread starter Pawel Janik
  • Start date Start date
P

Pawel Janik

Hello.

I'm currently writting a few dialogs, and stopped on canceling user choice.

Lets say, that i have ComboBox (working as a DropDownList). How to cancel
user selection, when his choice is invalid?

I'll try to use Validating event, and set Cancel property of CancelEventArgs
event argument, but after this action other controlls stops working
correctly....


regards,
Pawel Janik
 
* "Pawel Janik said:
I'm currently writting a few dialogs, and stopped on canceling user choice.

Lets say, that i have ComboBox (working as a DropDownList). How to cancel
user selection, when his choice is invalid?

I'll try to use Validating event, and set Cancel property of CancelEventArgs
event argument, but after this action other controlls stops working
correctly....

What about resetting the choice if it's "invalid"?
 
Uzytkownik "Herfried K. Wagner said:
What about resetting the choice if it's "invalid"?

yes, this is the "goal". But how to do this? :).

Searching a little bit more on googles, i've found, that i have to do this
by writing down last "valid" option, and, where user chooses "bad" value,
setting previous manualy.
 

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

Back
Top