|
-
Dec 11th, 2001, 09:36 AM
#1
Thread Starter
Lively Member
Quick question - need an event for when form minimized
Is there one?
Or do i have to make one
Thanks
-
Dec 11th, 2001, 09:40 AM
#2
Frenzied Member
How about using the Resize event and check if form state is vbminimized.
If so, then do your stuff.
VB Code:
Private Sub Form_Resize()
If Me.WindowState = VBMinimized then
'do whatever it is you need to do
end if
End Sub
-
Dec 11th, 2001, 09:40 AM
#3
Addicted Member
use the form resize event
-
Dec 11th, 2001, 09:41 AM
#4
What kind of event?
How and from where do you want the event called?
-
Dec 11th, 2001, 11:31 AM
#5
Thread Starter
Lively Member
Perfect! Thanks for the solutiion. For the record, Im using it to control whether or not an ActiveX exe is visible.
(It sits over my form at runtime and is set to always on top, but of course i need to hide it if my app is not active!)
Thanks very very much
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
|