multiple app icons in exe

  • Thread starter Thread starter Don Sherwood
  • Start date Start date
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
 
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 :)
 
* "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>
 
Back
Top