|
-
Aug 25th, 2009, 07:28 PM
#1
Thread Starter
Banned
[RESOLVED] Confirm before exiting?
How do I make it so that it will ask "Are you sure you want to exit?" when someone clicks the X?
-
Aug 25th, 2009, 07:45 PM
#2
Frenzied Member
Re: Confirm before exiting?
Try a yes no message in the forms close event
-
Aug 25th, 2009, 07:48 PM
#3
Re: Confirm before exiting?
Use the Form Closing event to pop your msgbox and you can check if the X was clicked by checking the parameter of the EventArgs. You can also use the Cancel argument to cancel the exit or not.
Sorry didn't see your post toe.
-
Aug 25th, 2009, 07:50 PM
#4
Thread Starter
Banned
Re: Confirm before exiting?
 Originally Posted by toecutter
Try a yes no message in the forms close event
What would be the code?
EDIT: How would I use e.Cancel = True
-
Aug 25th, 2009, 07:55 PM
#5
Frenzied Member
Re: Confirm before exiting?
Try a search, there are plenty of examples
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
|