App.ico difficulties, am i missing a gotcha?

  • Thread starter Thread starter Kelly C
  • Start date Start date
K

Kelly C

Alright, I'm trying to change my application icon without setting the icon
property of every form.

I've replaced the App.ico file in the project dir with a new icon. When i
compile and run my app the standard vs.net icon is displayed on both my main
mdi container form and on the button in my taskbar. I tried setting the
project Application Icon property to "App.ico" and ".\App.ico" and nothing
seems to work, whatever I do it still displays the default vs icon. The
only way I got it to actually display the icon i wanted was to go to the
main mdi containers properties and set it's icon property to my App.ico.

These doesn't seem right to me .. is there a better way?
 
That is the way it works. Each Form gets it's own Icon because it's kept in
the Form's resource file. If you want it to be the same ass the application,
then you will have to set it at runtime.

David McCarter
www.vbtt.com
 
Back
Top