 |
|
 |
Hello
When the Explorer.exe crashes all Icons in the Icon Tray get lost. This is normal.
If you register the Windows Message "TaskbarCreated" with
RegisterWindowMessage("TaskbarCreated")
you can set the icons anew when your application gets this message.
But there is a problem:
If on Windows Vista or Windows 7 your applications runs "As Administrator" AND UAC is active
your application will never get this message!
So if Explorer crashes you have no event to set the icons anew.
Does anybody know a solution ?
Microsoft destroyed so much things which were woking perfectly before with this f***** UAC!!!
Elmü
|
|
|
|
 |
|
 |
I've just checked out the standard .net notify icon. It now does everything your extended notify icon does. Let me know if yours still does more but otherwise maybe people should use the standard one. At least the value of your article was to let me know it existed and to check it out.
|
|
|
|
 |
|
 |
I'm writing some software for my company that we will be selling (not the general public, but rather to institutions) for profit.
Would you mind if I use your source code directly in my software; free of charge?
I could include your name in the source, if you desire.
Let me know, thanks!
William
|
|
|
|
 |
|
 |
Excuse my stupidity; I read the next page of comments and you did say it was licensed for use in commecial applications.
Thanks, and again, great app!
|
|
|
|
 |
|
 |
Hi,
I'm using your code and enjoying it very much. Lately, I've noticed some wierd issue. Sometimes, the notify icon overrides my Yahoo Messenger icon. So I see two icons of my program. If I click on the first on, it opens my program, and if I click on the second one it opens Yahoo Messenger. I'm updating the notify icon from multiple threads, if it makes a difference. Any ideas?
Thanks!
Eylon Yogev.
|
|
|
|
 |
|
 |
I am a new c#, in NotifyIconData of the routine there are some const value:
private enum NotifyFlags {Message=0x01, Icon=0x02, Tip=0x04, Info=0x10, State=0x08}
where I can look for the explain about the const value of the uFlags . like
Message=0x01, Icon=0x02 ... ;and when I set Icon=0x03 the icon wouldnot be seen.
thanks ;
-- modified at 23:19 Friday 11th May, 2007
I am junrich ; I hope to learn the program language; thanks
|
|
|
|
 |
|
|
 |
|
 |
How i change RTL(right to left) to LTR(left to right) in balloon text?
_____________
Only God !
|
|
|
|
 |
|
 |
Just ran across this on MSDN, thought you might like to know.
http://msdn2.microsoft.com/en-US/library/ms160064(VS.80).aspx[^]
QUOTE:
"Minimum and maximum timeout values are enforced by the operating system and are typically 10 and 30 seconds, respectively, however this can vary depending on the operating system. Timeout values that are too large or too small are adjusted to the appropriate minimum or maximum value. In addition, if the user does not appear to be using the computer (no keyboard or mouse events are occurring) then the If the user does not appear to be using the computer, the system does not count this time towards the timeout."
Also, .NET 2.0 now has support for balloon tips, but your library is great for .NET 1.1 apps
. Good job!
|
|
|
|
 |
|
 |
Dear Joel,
I've used this otherwise great version of a NotifyIcon for quite some time but now found out that it's not behaving well when run under Citrix.
First, the notifyicons are shown even though Visible is set to false. This does not occurr when the application is run locally.
Secondly, when I move my mouse over one of these icons, the Citrix connection gets lost!
Right now I'm completely stumped regarding why this should happen. Do you have an explanation or an idea where to look?
Thanks in advance,
mav
|
|
|
|
 |
|
 |
Downloaded the demo exe and source code....the balloon works on an XP pc but does not work on my windows server 2003 pc. Still rumaging through the code but any ideas?
|
|
|
|
 |
|
 |
Hi, great article. I was wandering if it is possible to add drag and drop functionality with your notifyIcon code?
Cheers,
|
|
|
|
 |
|
 |
First I want to thank you for sharing that excellent piece of code.
During implementation I found a way to timeout the balloon after a predefined time.
Here a way to do it:
in NotifyIconEx.cs make the following changes:
//implement system.timers
using System.Timers;
//add the following to
// public class NotifyIconEx : System.ComponentModel.Component
private System.Timers.Timer t_Timeout;
/* in the method
public void ShowBalloon(string title, string text, NotifyInfoFlags type, int timeoutInMilliSeconds)
add the following code somewhere: */
t_Timeout=new System.Timers.Timer();
t_Timeout.Elapsed+=new ElapsedEventHandler(TimeOutBalloon);
t_Timeout.Interval=timeoutInMilliSeconds;
t_Timeout.Enabled=true;
// and finally add the following method to the NotifiyIconEx class:
private void TimeOutBalloon(object source, ElapsedEventArgs e)
{
t_Timeout.Enabled=false;
this.Visible=false;
this.Visible=true;
}
Regards,
Bernhard
|
|
|
|
 |
|
 |
Finally stumbled across this posting after wrestling with trying to hide the balloon for the better part of the day.
It pays to read the fine print.
Cheers,
Kieran
Regards,
Kieran Lee
|
|
|
|
 |
|
 |
Hi.
Sent when the balloon is dismissed because of a timeout, or because the user clicked on the balloon close box (X) - MSDN.
So this is not a bug - this is a feature
Best Regards,
Alex.
|
|
|
|
 |
|
 |
gj really... tnx for sharing with us...
|
|
|
|
 |
|
|
 |
|
 |
Joel,
I have been trying to use the code as you suggested. I created a new project called NotifyIconBalloon, which consists of a C# class library file. In this file I pasted all the code from the NotifyIconEx.cs file in your project. I then built the .dll and referenced it in my project. When I try to use the reference, items like NotifyIconBallon.ShowBalloon do not exist.
This is all I see:NotifyIconBalloon.NotifyIconEx.NotifyInfoFlags. What parts of your project do I need to create the .dll correctly?
THANKS...I CANNOT WAIT TO USE THE FEATURES IN YOUR CODE!!!!!!
Intel96
|
|
|
|
 |
|
 |
Over simplified...
Dim WithEvents ni As JCMLib.NotifyIconEx
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ni.ShowBalloon("title", "test", JCMLib.NotifyIconEx.NotifyInfoFlags.Info, 2000)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
ni = New JCMLib.NotifyIconEx
ni.Visible = True
ni.Icon = New Icon("..\EYE.ICO")
End Sub
|
|
|
|
 |
|
 |
I think it is better than Visual Studio.Net
|
|
|
|
 |
|
 |
Is there any way to have formatted text in the balloon (using HTML or some other form of markup)? Great component, BTW!
|
|
|
|
 |
|
 |
I've also noticed some problems with the balloon not functioning as expected.
1. I have registered a balloon click event and an icon double click event. Most of the time when I run my application these work as expected. Occasionally I will show the balloon, click the 'x' to close it, then double click the icon. This seems to fire not only the double click event but the balloon click also. When this happens it does this for the duration of the application, but once restarted will work normally again.
2. Occasionally I make the call to show the balloon, but the balloon does not show, despite the call to Shell_NotifyIcon returning TRUE.
Has anyone else experienced such problems?
Cheers
|
|
|
|
 |
|
 |
I've seen the behavior where the balloon does not show as expected.
|
|
|
|
 |
|
 |
I've added the tray icon to an application and was doing some testing on another problem I had when occurs when explorer.exe dies and restarts (basically by killing explorer.exe from Task Manager then File->New Task->explorer to restart it).
Once restarted, the context menu associated with the icon starts to "jump" away when I try to click it, although I am able to eventually click it. Anyone else seen this?
Also, on some occasions the OnTaskbarCreated seems to get fired repeatedly (usually happens after repeatedly killing and restarting explorer). This locks up the application as it uses 80-100% CPU.
I know these are unlikely to happen in everyday running use but could anyone shed some light on what is happening?
Thanks
P.S. I made the change suggested in another thread - message number = RegisterWindowMessage("TaskbarCreated"), but this made no difference (the message number return is the same as the one I am currently using).
|
|
|
|
 |
|
 |
I dont think its a problem with the code, iv noticed these problems with out notification icons, and sometime the jumping of the context menu happens when my system slows down so that may be the reason for it. It jumps because when windows finnaly gains a chance to draw it, it checks the mouse coordinates which have changed.
I may be wrong, but its a hell of a good guess
|
|
|
|
 |