Link to home
Start Free TrialLog in
Avatar of clear100-com
clear100-com

asked on

Simple: When programs are minized...

Hello, I want to be able to run some code when the user minimizes the program, i know this can be done because it happens on a lot of programs.  I want to hide the form when this happens because it resedents in the system tray.  So all i need is how to figure out when it is minized.

Thanks...
ASKER CERTIFIED SOLUTION
Avatar of ___XXX_X_XXX___
___XXX_X_XXX___

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike Tomlinson
Private Sub Form_Resize()
    If Me.WindowState = vbMinimized Then
        Me.Hide
    End If
End Sub

DON'T ACCEPT THIS AS AN ANSWER!!!

Accept the solution from ___XXX_X_XXX___

Idle_Mind


Avatar of clear100-com
clear100-com

ASKER

see i knew this, but i just was too tired or somthing, thanks.!!!
Idle_Mind,
Why not to accept your code ? It's correct solution also.
Because I just changed one line in your code which I think clear100-com would have known to do.  Your answer had the main part of the solution...my poor brain just couldn't leave the question without posting the complete answer.

You posted first so I felt you should get the points.

Idle_Mind