Using the System Tray

Posted by rbf on 21-Nov-2012 06:04

What are the options of using the System Tray in a GUI for .NET application?

All Replies

Posted by Admin on 21-Nov-2012 06:54

What do you want to use it for?  There are components for everything :-)  NotifyIcons, BalloonTips, ...

Posted by rbf on 21-Nov-2012 07:33

mikefe wrote:

What do you want to use it for?  There are components for everything :-)  NotifyIcons, BalloonTips, ...

Where do I find that information? These are not Infragistics controls are they? Or .NET controls?

In this case I want to use it to inform that the user is monitoring messages in his session. When they click the icon in the tray they can switch it off and/or change what messages they are monitoring.

Posted by gdb390 on 21-Nov-2012 07:47

No Infragistics controls, just window controls (System.Windows.Forms.NotifyIcon, ...)

Great examples can be found on Mike's website :

http://www.consultingwerk.de/fileadmin/user_upload/ExtremeWindowsDesktop/ExtremeWindowsDesktopIntegration_Samples.zip

It's been a while since I looked at the code, so I don't know if the System Tray is included

Gerd

Posted by Admin on 21-Nov-2012 09:06

I think Peter is looking for the NotifyIcon component.

That should be in my slides.

The reference is on MSDN.

Posted by rbf on 21-Nov-2012 09:12

mikefe wrote:

I think Peter is looking for the NotifyIcon component.

That should be in my slides.

The reference is on MSDN.

Not sure. I am already using Infragistic's WinDesktopAlert for notifications.

What I am looking for is how to provide an icon in the system tray to change the settings.

Posted by Admin on 21-Nov-2012 09:26

You are looking for the NotifyIcon.

Posted by rbf on 21-Nov-2012 10:54

Thanks Mike that works!

-peter

Posted by Peter van Dam on 31-Jan-2013 10:16

OK so I have the NotifyIcon and the balloon working for a while now.

What I cannot figure out is how to associate a popup menu with the NotifyIcon.

If I add an UltraToolbarsManager then a ContextMenuUltra property is added to the NotifyIcon but how do I get it populated?

Or the ContextMenuStrip property?

This thread is closed