Pocket PC Addict Forums



» BoxWave
BoxWave Corporation
» More Resources

Welcome to the Pocket PC Addict Forums!

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.

Go Back   Pocket PC Addict Forums > Software > Windows Mobile 5

view more in our Photo Gallery...

Windows Mobile 5 Anything problems, tips, or tricks on WM 5

Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2008, 06:11 AM
adic's Avatar
adic adic is offline
Junior Member
Pre-Addict
 
Join Date: Feb 2008
Device: PPC 5.0
Posts: 1
Downloads: 0
Uploads: 0
Question Change Icon in NotifyIcon

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):
path = f.Directory.FullName + @"\icons\icon1.ico"; stream = File.OpenRead(path);
Icon icon1 =
newIcon(stream);
path = f.Directory.FullName + @"\icons\icon2.ico";
stream = File.OpenRead(path);
Icon icon2 = newIcon(stream);
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
Reply With Quote
Sponsored Links
  #2  
Old 06-18-2008, 02:10 AM
JSkywalker's Avatar
JSkywalker JSkywalker is offline
Junior Member
Pre-Addict
 
Join Date: Jun 2008
Device: Qtek 9000
Posts: 1
Downloads: 0
Uploads: 0
Same Problem

Hi,

I have the same problem, do you already have any solution to it?

Cheers
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
i have a icon that wont go away chris82o Software 2 12-21-2007 03:25 AM
Network Card Icon LALOLAND Hardware 0 10-31-2007 08:37 AM
free icon packs? astealthw Software 0 03-09-2007 03:00 PM
SPB Pocket Plus icon question bagwellfive Software 1 11-27-2006 12:42 PM
Phone Icon Problem, Please Help! TLJack64 Software 0 08-20-2006 11:44 PM


All times are GMT -5. The time now is 03:53 AM.




Content Relevant URLs by vBSEO 3.0.0 RC3
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2006 by Pocket PC Addict