|
-
Feb 27th, 2007, 09:31 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] enable the close
Hi
I have a form in which there is an "EXIT" command. I want that if the user hits the Close button of the form to execute the sub cmdexit_click
How can I do it?
thanks
-
Feb 27th, 2007, 09:36 AM
#2
Hyperactive Member
Re: enable the close
use something within the
VB Code:
Private Sub Form_Terminate()
End Sub
i think thats how you do it, its a while since ive used that
If a post has been usefull then Rate it! 
-
Feb 27th, 2007, 09:37 AM
#3
Re: enable the close
Code:
Private Sub form_Unload()
Call cmdexit_click()
End Sub
-
Feb 27th, 2007, 09:40 AM
#4
Re: enable the close
Code:
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
cmdExit.Value = True
End Sub
-
Feb 27th, 2007, 09:42 AM
#5
Thread Starter
Fanatic Member
-
Feb 27th, 2007, 09:55 AM
#6
Re: enable the close
You are welcome.
If you consider your question to be answered, please do not forget to mark the thread as resolved.
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
|