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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top