Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form unload question
Message
From
23/06/2002 09:14:59
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00671464
Message ID:
00671467
Views:
15
This message has been marked as the solution to the initial question of the thread.
Yes, you can trap this situation, but in QueryUnload event. If you want to cancel form unload, set Cancel parameter of this event to True (or something different from 0). In addition, you can use UnloadMode parameter to determine which cause form unloading - clicking of 'X', issuing Unload command from code, etc. Check MSDN article "QueryUnload Event" for further information.

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform