Make sure the icon is included in the project. If it doesn't show in the
project explorer, right click the project file, select add existing item,
then browse to the icon file. Next, set the build action property of the
icon file to Embedded Resource.
To programatically set the icon file as the form file for the main form, use
the following code, either in the form constructor or wherever else in your
code you choose to set the icon.
this.Icon = new Icon(GetType(),"myIcon.ico");
Hope this helps,
Dale
"SlasherStanley" <as@ss.com> wrote in message
news:iCfec.482$nG1.462@newsfe1-win...
I have wrote a c# app and included the default app.ico file and then
compliled it.
When I create a shortcut to the application on the destop, I would like
the option of selecting from a choice of icons that are built into the file.
How do I include the icons in my application for this to work?
Thanks
Slasher Stanley