You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, download files, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
Hi,
I am developing an application fpr pocket pc WM 5.0 throw OpenNetCF Version 2.2, Win CF 2.0,
I use OpenNetCF.NotifyIcon in order to set my application icon on the tray.
I also attached Context Menu to the NotifyIcon by catching the MouseDown event and enable the context menu.
The problem starts hen I'm changing the Icon in the NotifyIcon according to the selection of the user.
I have 2 icons which I initilalize in the begginig of the programm in the following way (the icons included in my project and being copied to the device):
Application starts with icon2 as the icon in the notifyIcon object
Now, when the user select "Stop" from the context menu, I change the notifyIcon to icon1 in this way:
notifyIcon.Icon = icon1;
and when he select "Start" I change it back to icon2 again.
The first replacment is working great, icon2 is being replaced to icon1.
When I try to replace icon1 to icon2, the icon disappear from the tray but I still get events from the notifyIcon as if it was there, meaning, the notifyIcon is still on the tray but I can not see the icon.
Why does the icon disappear?
When I am using NotifyIcon without replacing the icons (using the same icon all the time) it does not happen.
Is there a better way to replace the icons in the NotifyIcon?
Please help, I need it ASAP...
Thanks,
Adir