Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to bypass Validating event when closing form?
Message
From
11/02/2008 14:53:15
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01291525
Message ID:
01291584
Views:
9
Set to forms 'CausesValidation' to false.
In the FormClosing event set the FormClosingEventArgs.Cancel to false;


That was too much code < s >. All I needed was this:
e.Cancel = false
Apparently the validation causes it to be set to true under the hood.

HTH (Whatja messing with this C# stuff for anyway <g>)

I have already done a couple of small ASP.NET projects over the years. However, they have been too few and far between for me to remember anything that I learned doing them - plus the code was crap :-(. So I am taking a C# course at the university here because I have had a lot of requests for me to do C# work and my big VFP projects are winding down.

Andy and I plan to retire in 5 years, so I am adding to my skill set so we can protect our capital and add to the retirement nest egg as we wind down. Andy hasn't done much VFP (except for his personal use and to write tools) - he has been pretty much a SQL Server DBA for the last 3 years...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform