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?
Printable View
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?
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.
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
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.Quote:
Originally posted by bob323
form.resize get called way too much to be of use. Any ideas?