System Tray

  • Thread starter Thread starter Xarky
  • Start date Start date
X

Xarky

Hi,

I am writing a small application, and would like to leave it running
in the system tray. Please can someone tell me how to do it.



Thanks in advance
 
You want to have it in the System tray every time ?
- Use a NotiFyIcon
- on the main form, select minimized for the startup position,
put topmost to false and also show in taskbar to false too.

Tom.
 
Hi,

this is the reply I got! It is really simple.

Have a look at "Minimize to tray"-thread by mphanke ;-)

Regards,

Martin

Hi
use notifyicon


.... and catch SizeChanged event to check WindowState (Minimized),
then set ShowInTaskbar to false.

If your WindowState changes to other than Minimized then hide
NotifyIcon and set ShowInTaskbar to true.

Cheers!
 
Back
Top