By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,572 Members | 946 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,572 IT Pros & Developers. It's quick & easy.

NotifyIcon Problem??

P: n/a
I have a project that uses the NotifyIcon to put an icon in the system tray. At some point in the application I change the .Icon property of the object to another Icon object but instead of changing the tray icon to the new Icon a new icon appears in the system tray next to the original icon and the new icon will not resond to any events.

Has anyone seen this??

Code snippet....

private Icon mDirIcon = new Icon(typeof(SystemTray).Assembly.GetManifestResour ceStream("PDASynch.pda.ico"));
private Icon mDirIcon1 = new Icon(typeof(SystemTray).Assembly.GetManifestResour ceStream("PDASynch.pda1.ico"));

Ininitialize:
WSNotifyIcon.Icon = mDirIcon ;

In called method:
WSNotifyIcon.Icon = mDirIcon1;

This call puts a second Icon in the tray!!


Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.