multiple app icons in exe

D

Don Sherwood

When you create a shortcut to an application, and you click the button to
change the icon, windows shows you all the icon resources contained in that
exe file. I want to create an application in .NET that has multiple icons
to choose from. I have tried including the icons in the project and setting
them to "Embedded Resource", however it embeds the resource to be read by
..NET code, and not as icon resources that can be used for shortcuts.

Any hints?

Thanks,
Don
 
S

Sahil Malik

The mainform of the windows application you are working with has an Icon
property. Just set the Icon = "your resource icon", and you should be able
to programatically change the icons as you want to :)
 
H

Herfried K. Wagner [MVP]

* "Don Sherwood said:
When you create a shortcut to an application, and you click the button to
change the icon, windows shows you all the icon resources contained in that
exe file. I want to create an application in .NET that has multiple icons
to choose from. I have tried including the icons in the project and setting
them to "Embedded Resource", however it embeds the resource to be read by
.NET code, and not as icon resources that can be used for shortcuts.

You will habe to include Win32 icon resources:

<URL:http://dotnet.mvps.org/dotnet/samples/codingtechnique/downloads/ResourceIcons.zip>
 

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