|
-
December 29th, 2002, 02:03 PM
#1
prompt for exit program
my program prompts the user " Do you want to exit program?", which works fine except that it prompts when windows is closing. how do i test for windows closing to allow my program to exit without prompting. ( use to do it in query unload )
-
December 29th, 2002, 02:31 PM
#2
Set a flag in the explicit window close. Check the flag in QueryUnload....
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
-
December 29th, 2002, 02:59 PM
#3
you're thinking of vb6. this is net. there is no query unload. thanks anyway.
-
December 30th, 2002, 09:28 AM
#4
"Closing" is the event which is running when form is closing.
Using the event arg e you can set e.Cancel = True
if you wish to cancel closing.
-
December 30th, 2002, 11:03 AM
#5
thats not what i asked
thats not what i asked, i know how to use the e.cancel, what i want to know is how to test to see if my program is closing because the operating system is closing.
-
December 30th, 2002, 11:44 AM
#6
-
December 30th, 2002, 11:57 AM
#7
THANKS
that was exactly what i wanted. thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|