|
-
Dec 14th, 1999, 09:19 PM
#1
Thread Starter
Hyperactive Member
I know you can put code in vb for when someone hits the x to kill the program you can have it so it doesn't unload by using
form_unload(cancel as integer) or something along those lines it doesn't matter but is there code that says when the maximize button is hit then something happens or if the minimize button is hit then something happens?
-
Dec 14th, 1999, 09:24 PM
#2
Yes, you can use the Form_Resize event and check the value of the WindowState property:
Private Sub Form_Resize()
Select Case Me.WindowState
Case vbMinimized
'Do Whatever
Case vbMaximized
'Do something else...
End Select
End Sub
Good luck!
------------------
Joacim Andersson
[email protected]
[email protected]
www.YellowBlazer.com
-
Dec 14th, 1999, 09:27 PM
#3
Thread Starter
Hyperactive Member
Thanks you so much it works great. Now i can put the finishing touches on my project. Thanks a lot!!!!!!
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
|