|
-
Mar 15th, 2008, 08:15 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] [2005] Exit Event
Hello, is there a way to do some actions if the Red Exit button (top right corner of screen with the text X) was clicked. I want to do some actions if the user trys to close the program, because for my login form i cant have them exiting it then the program kind of corrupts.
-
Mar 15th, 2008, 08:22 AM
#2
Re: [2005] Exit Event
Handle the formclosing event of your form. Looka at e.CloseReason to see why your form is being closed and perform appropriate action there. If you don't wnat it to close, set e.cancel = true.
-
Mar 15th, 2008, 08:35 AM
#3
Thread Starter
Frenzied Member
Re: [2005] Exit Event
thankyou for you help, so i can type
if me.formclosing = true then?
-
Mar 15th, 2008, 08:38 AM
#4
Re: [2005] Exit Event
 Originally Posted by noahssite
thankyou for you help, so i can type
if me.formclosing = true then?
No. As stanav said, FormClosing is an Event which you need to handle.
-
Mar 15th, 2008, 09:09 AM
#5
Thread Starter
Frenzied Member
-
Mar 15th, 2008, 02:16 PM
#6
Frenzied Member
Re: [2005] Exit Event
If you don't have any more questions on this subject, you should mark the thread RESOLVED. Cheers!
Please rate helpful ppl's posts. It's the best 'thank you' you can give 
-
Mar 15th, 2008, 05:52 PM
#7
Thread Starter
Frenzied Member
Re: [RESOLVED] [2005] Exit Event
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
|