views:

260

answers:

2

c# winforms validating Event not working when i click on save button it still fire save event unless i have textbox validations....

A: 

Set your "Save" button as form's "Accept" button. myForm.AcceptButton = btnSave

serhio
A: 

I have the same issue, the textboxes are validating but the labels aren't.

My save button is attached to the form by the AcceptButton property. Also the CausesValidition is set to true.

oets