Hi,
I was experimenting with this icon problem and had a very difficult
time attempting to reload another icon file for a NotifyIcon control.
My problem was that I kept getting involved with the resouce file
which is very extensive and written in xml. After about an hour of
messing with this, I can up with a much simpler solution.
I added two NotifyIcon controls and simply swapped the visible state
(true or false) between the two icons. This worked very well.
If you find another way involving reassigning the icon to a simple
control, I am very interested in hearing how you did it.
Thanks,
Kevin O'Connell
On Aug 29, 9:00 am, Kevin Hunter <[EMAIL PROTECTED]> wrote:
> OK, here is my problem
>
> i am currently making a program that involves a NotifyIcon. i can
> manly change the icon (before the program runs in the properties
> window) with no problem, but what i need is a way to have the program
> change its icon mid-stream.
>
> i have already make to icon files: let's call them icon1.ico and
> icon2.ico. i also have a (working) NotifyIcon, and we'll call that
> NotifyIcon1 (these are all default names).
>
> i have tried other things like NotifyIcon1.add("The Icon Location"),
> but that just ADDS the new icon to the notification area, and will not
> replace the previous one.
>
> so in short: is there a way to code a program to replace on icon in an
> NotifyIcon with another?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---