Click here to Skip to main content
15,879,474 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I show a custom icon when showing a balloon tip?

I use the System.Windows.Forms.NotifyIcon class in order to show my notify icon.

Are there any other .NET NotifyIcon classes which support custom balloon tip icons?
Posted
Comments
Herman<T>.Instance 20-Jul-11 7:57am    
maybe:
System.Windows.Forms.ToolTip tTip = new ToolTip();
tTip.IsBalloon = true;

?
Member 8036446 20-Jul-11 8:23am    
The ToolTip class does not provide a property for setting as custom icon.

This is the way it should look like: http://wwwhomes.uni-bielefeld.de/stwerk/House-Net/8021X/en/W7/screenshots/Es_werden_weitere_Informationen_benoetigt.png
Oludayo Alli 13-Aug-11 3:34am    
There are predefined Icons such as:

notifyIcon1.BalloonTipIcon = ToolTipIcon.Warning;

But if you need a custom Icon I think you have to write a class that inherit the NotifyIcon Class
Member 8036446 13-Aug-11 3:53am    
The NotifyIcon class is sealed. Therefore it is not possible to inherit from it.
Oludayo Alli 13-Aug-11 6:05am    
You may use WPF Interop (if possible) to leverage the ability to customize the balloon icon. I've not tried this before, it's just a suggestion

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