Determine if Window has been minimized

  • Thread starter Thread starter Lou Civitella
  • Start date Start date
L

Lou Civitella

I am trying to determine if a window has been minimized. What I would like
to do is have the user click the minimize button and then hide the form and
show a notify icon in the area by the clock.

How can I do this?

Thanks In Advance,
Lou
 
Lou Civitella said:
I am trying to determine if a window has been minimized. What I would like
to do is have the user click the minimize button and then hide the form and
show a notify icon in the area by the clock.

Untested (I don't have access to a .NET machine at the moment):

Add this code to your form's 'Resize' event handler:

\\\
If Me.WindowState = WindowState.Minimized Then
...
End If
///
 
Thanks Herfried this worked great.

Herfried K. Wagner said:
Untested (I don't have access to a .NET machine at the moment):

Add this code to your form's 'Resize' event handler:

\\\
If Me.WindowState = WindowState.Minimized Then
...
End If
///
 
Back
Top