Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have a requirement in my project regarding system tray application. My application has many files in queue which has to be copied on to another location. When ever i move my mouse over the notify icon, i need to show the below details:

App Name
Failed:
Succeeded:
In Progress:

Can anyone help me in acheving this using C#?

Thanks and Regards,
YKK Reddy
Posted
Comments
Sergey Alexandrovich Kryukov 22-Nov-11 14:56pm    
Why on the mouse event?
You should better notify the status as soon as it changed. Don't forget, it's called "notify icon".
--SA

In your main application, whenever the state changes and you need to make it available to the user, then simply update the Text property of the notify icon, then when the user moves over the icon is the task tray then the tooltip with the text will be displayed. This is consistent behaviour with windows applications and therefore does not annoy the user.

You could also change the icon on a state change.

C#
notifyIcon1.Text = "The New State";
notifyIcon1.Icon = .........; //some icon
 
Share this answer
 
v2
Ihave used Win32 NotifyIcon structure whichcan hold 128 characters.

Please refer to the mentioned link.
http://stackoverflow.com/questions/579665/how-can-i-show-a-systray-tooltip-longer-than-63-chars[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900