|
-
Apr 4th, 2001, 03:09 PM
#1
Thread Starter
Addicted Member
I want a simple message box to popup whenever the window is restored after being minimized, but form.paint, form.resize get called way too much to be of use. Any ideas?
-
Apr 4th, 2001, 04:01 PM
#2
Lively Member
However, if you set a flag when first minimized, then in, say, paint, if the flag is set, you'll know to pop up the msgbox.
Or, have a timer regularly check IsIconic() and pop up the msgbox when IsIconic() changes to 0.
-
Apr 4th, 2001, 06:47 PM
#3
Fanatic Member
Hi Bob,
I know you don't want to use the Resize event, but I think it might be the only most efficient way to do it.
Code:
Private Sub Form_Resize()
If Me.WindowState = vbNormal Then MsgBox Me.WindowState
End Sub
Chemically Formulated As:
Dr. Nitro
-
Apr 4th, 2001, 06:59 PM
#4
Originally posted by bob323
form.resize get called way too much to be of use. Any ideas?
It may be called a lot, but that shouldn't stop you from putting code in it. This place is the best place to put it without the use of timers, hooks, or subclassing.
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
|