Results 1 to 4 of 4

Thread: finding out when the window has been restored

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Posts
    183
    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?

  2. #2
    Lively Member
    Join Date
    Apr 2001
    Location
    Central NC
    Posts
    75
    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.

  3. #3
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    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

  4. #4
    Megatron
    Guest
    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
  •  



Click Here to Expand Forum to Full Width