Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User Controls Validating event
Message
From
28/07/2005 07:21:22
 
 
To
28/07/2005 03:30:26
Steve Jones
Business Systems Services Uk Ltd
Swansea, United Kingdom
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
VB.NET 1.1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01036485
Message ID:
01036510
Views:
15
Hi Steve,

There are a couple of links on this site that may help:

A control's Validating event is hit even when the user clicks on the Close box. How can I avoid this behavior?
I would like to prevent validation in my textbox when the user clicks on my Cancel button, how do I do this?

by the way, this site only seems to work properly in IE.
The example is in C#, I think you can use DisplayRectangle in VB.NET instead of ClientRectangle as per the examples.

>Is there any way to stop the validating event on user controls being executed when the user closes the form.

>We inherit the main form and have tried changing the CausesValidation property on this but this doesn't seem to override the validating events of the controls.

>Basically we have controls where in some circumstances they cannot be blank etc and a message is displayed, but if the user closes a form without saving then we would not want these messages displayed.

>Thanks
>Steve
- Craig

"If you're not prepared to be wrong, you will never come up with anything original."
- Sir Ken Robinson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform