all groups > dotnet windows forms > january 2006 >
You're in the

dotnet windows forms

group:

ErrorProvider


ErrorProvider Jay Pondy
1/21/2006 9:21:20 AM
dotnet windows forms:
I have a textbox which requires a numeric value and I am using the Validating Event to call the ErrorProvider.SetError method when the validation fails.

I also have a Cancel button with the CausesValidation property set to FALSE.

If I give the textbox focus and enter an empty string and then attempt to click the Cancel button the Validating event fires and the form will not close. Is
this the correct behavior?
RE: ErrorProvider Jay Pondy
1/21/2006 10:30:04 AM
If you open the form Modally with ShowDialog it works as it should. My
mistake!!

[quoted text, click to view]
AddThis Social Bookmark Button