A simple solution is that, put your icons in Resources. Then on
runtime change the icon, for example,
NotifyIcon1.Icon = My.Resources.Resources.Icon2
Or you can directly load from file,
NotifyIcon1.Icon = New Icon("E:\Icons\Icon2.ico")
BTW I am talking about VS2005, in which we don't have the "Add()"
method. But I guess above will be valid for VS2008 too.
Regards,
Arsalan Tamiz
On Aug 29, 9:00 pm, 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
-~----------~----~----~----~------~----~------~--~---