how to add an item in the system tray?

  • Thread starter Thread starter ywchan
  • Start date Start date
Y

ywchan

I want to add an item to the system tray when my application is minimized.
How to do this? Can anyone give me some reference or idea? Thanks a lot!
 
Hi,

Try NotyIcon component, here is an example:

// You should replace the bold icon in the sample below
// with an icon of your own choosing.
notifyIcon1.Icon =
new System.Drawing.Icon (System.Environment.GetFolderPath
(System.Environment.SpecialFolder.Personal)
+ @"\Icon.ico");
notifyIcon1.Visible = true;
notifyIcon1.Text = "Antivirus program";
 
thanks!

Salvador said:
Hi,

Try NotyIcon component, here is an example:

// You should replace the bold icon in the sample below
// with an icon of your own choosing.
notifyIcon1.Icon =
new System.Drawing.Icon (System.Environment.GetFolderPath
(System.Environment.SpecialFolder.Personal)
+ @"\Icon.ico");
notifyIcon1.Visible = true;
notifyIcon1.Text = "Antivirus program";
 
Back
Top