How to minimize (a console window) to Systray (not Taskbar)?

  • Thread starter Thread starter Pia Stevens
  • Start date Start date
P

Pia Stevens

A program opened at start a console window.

How can I automatically minimized this window to Systray (not Taskbar)?

Pia
 
If this is your app then the need to handle the WindowsState changing and set
ShowInTaskBar = false
and create a notifyicon object and handle the click event on that to show
the window again. Not entirely sure whether this is possible for a console
app though.

If this isnt you app but just a console app then you cant really do it in
plain .net
 
Back
Top