Validating event usurps button click on Windows Form

Posted by triskelion on Stack Overflow See other posts from Stack Overflow or by triskelion
Published on 2010-05-10T15:45:06Z Indexed on 2010/05/10 18:24 UTC
Read the original article Hit count: 172

Filed under:
|

I have a ComboBox and a Save button on my Windows Form. When I change the selected value in the ComboBox then click the Save button, the ComboBox validating event fires but the button click is lost. When the selected value is valid this results in the user thinking they have saved the change when in fact they have not.

Why is the button click lost if the ComboBox is valid? Is there a work around?

© Stack Overflow or respective owner

Related posts about winforms

Related posts about event-handling