Groups | Blog | Home
all groups > vb.net > january 2005 >

vb.net : Changing desktop Icon in real time


joisey NO[at]SPAM mindspring.com
1/18/2005 10:21:01 PM
I need to let the user know what state a certain property had the last time
the program was run.
Is there a way to have the application itself change the desktop icon used
to start the program.
I refer to the icon which was placed on the desktop by the install routine,
which I specified when setting up the install routine.
I would like to find some code to include in my main vb application which
would replace this icon with one of a different color, whenever a certain
property is true.
.......joisey

Cor Ligthert
1/19/2005 8:48:37 AM
Joisey,

In my opinion is do you take for what you want to do a strange and difficult
approach. In my opinion is what you want to achieve normally done with the
registry which is easy to use in VBNet.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfmicrosoftwin32registryclasstopic.asp

I hope this helps?

Cor

Herfried K. Wagner [MVP]
1/19/2005 11:40:51 AM
<joisey@mindspring.com> schrieb:
[quoted text, click to view]

You can manipulate the shortcut (shell link) file and let it point to
another icon:

<URL:http://www.msjogren.net/dotnet/eng/samples/dotnet_shelllink.asp>
<URL:http://vbaccelerator.com/article.asp?id=4301>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
AddThis Social Bookmark Button