Changing desktop Icon in real time

G

Guest

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
 
H

Herfried K. Wagner [MVP]

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.

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top