Amit G.
Irvine, CA
Jan 13, 2009
26
Posts
Re: Handling a Click Event on a System Tray Icon
I have attached a sample program to this incident demonstrating the use of the NotifyIcon .NET class along with its OnClick Event. A .NET event can be linked to an ATEasy procedure by using the following code:
AddHandler nIcon.OnClick, OnClickEvent
In this case, OnClickEvent is an ATEasy procedure.
You can modify the example code (attached to this thread) to link other events such as OnDoubleClick.
File Attachment:
SystemIcon.zip
Michael W.
Lititz, PA
Jul 7, 2009
30
Posts
Re: Handling a Click Event on a System Tray Icon
At the time, this worked. But ever since getting .NET Framework updates, it doesn't work. Try running the SystemIcon program now. When you click on the icon, you will get the attached error. I currently have .NET Framework 3.5 SP1 installed on Win XP Pro Ver 2002 SP3. Can you please help to fix it. I can't seem to make any sense out of it. Thanks.
File Attachment:
NET Framework error.bmp