471,350 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

App.ico difficulties, am i missing a gotcha?

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?
Jul 21 '05 #1
1 1998
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

"Kelly C" wrote:
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?

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Frank Bechmann | last post: by
2 posts views Thread by brolewis | last post: by
1 post views Thread by Ben | last post: by
1 post views Thread by Rob Meade | last post: by
reply views Thread by Yin99 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.