Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User Controls Validating event
Message
 
 
À
28/07/2005 03:30:26
Steve Jones
Business Systems Services Uk Ltd
Swansea, Royaume Uni
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
VB.NET 1.1
Database:
MS SQL Server
Divers
Thread ID:
01036485
Message ID:
01036510
Vues:
14
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform