how to display alert in system tray?

Joined
Jun 9, 2013
Messages
6
Programming Experience
3-5
Hi
I want to display alert in system tray using c#.
Message is shown in popup window (like form) ,fetched from database
it will be displayed for 10 seconds
If user forget to see ,it will be displayed as icon in the system tray
and clicking can be opened to see the popup window.

Please help me.
It is urgent.
Regards
Rama
 
Check out NotifyIcon component and its ShowBalloonTip method.
 
You say that you want the notification displayed in the system tray and then you say that you want it displayed in a form. They are two different things. JohnH suggests using the NotifyIcon component. That actually will display an icon in the system tray and you can then display a notification in a balloon from that. If you want the message in a form then it's not in the system tray, whether your form is displayed near the system tray or not. Windows 10's native notifications are displayed just above the system tray too but they are not part of the system tray, so you need to first decide exactly what it is that you want. Keep in mind that, if you do use a NotifyIcon, you don't have to display the tray icon all the time. You can display it just as long as the notification is visible if you want.
 
Back
Top Bottom