Click to See Complete Forum and Search --> : finding out when the window has been restored
bob323
Apr 4th, 2001, 03:09 PM
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?
cookre
Apr 4th, 2001, 04:01 PM
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.
Nitro
Apr 4th, 2001, 06:47 PM
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.
Private Sub Form_Resize()
If Me.WindowState = vbNormal Then MsgBox Me.WindowState
End Sub
Megatron
Apr 4th, 2001, 06:59 PM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.