Minimizing Applications To Systray

Published 05 August 04 02:46 PM | mhawley

This is just a heads up for those developers creating applications in which your app can minimize to the systray.

NEVER NEVER NEVER set the Visible property. Doing so can cause unexpected behavior when trying to restore the application from its minimized "systray" state.

Also, a side note - if your application needs to minimize to the systray, and dissapear from the taskbar, set FormBorderStyle to FixedToolWindow, then when it is restored, set it back to Fixed3D or FixedSingle, or Sizable. What this does is that it eliminates your application from being "alt-tabbed" to while in its minimized "systray" state.

Just a few helpful tips from your handy dandy .NET neighbor.

Filed under:

Comments

# Jerry Pisk said on August 5, 2004 09:38 PM:

So minimize, hide and then show and restore has side-effects in WinForms? What are the problems?

# TrackBack said on August 6, 2004 03:44 AM:
# TrackBack said on August 6, 2004 09:57 AM:

Minimize To Systray

This Blog

News

.NET Links

Blogs I Read

Syndication