Setting application icon doesnt work
-
When you create a Windows forms project in VS .NET 2003 you get a file called App.ico, right? So I started drawing in it to get my own icon. I then took the main window and went to the Icon property. I pressed the button there and chose the App.ico file in the project folder. This doesnt work. The exe file created has the standard icon and so does the program when it starts. If I open the ico file in VS it looks just like I drew it. I used the same icon for a contextmenu and it works there. When I minimize the program to the system tray I have the correct icon there but the program doesnt. By the way, an *.ico file should look like the icon itself when I look at it in an explorer window, right? Thanks
-
When you create a Windows forms project in VS .NET 2003 you get a file called App.ico, right? So I started drawing in it to get my own icon. I then took the main window and went to the Icon property. I pressed the button there and chose the App.ico file in the project folder. This doesnt work. The exe file created has the standard icon and so does the program when it starts. If I open the ico file in VS it looks just like I drew it. I used the same icon for a contextmenu and it works there. When I minimize the program to the system tray I have the correct icon there but the program doesnt. By the way, an *.ico file should look like the icon itself when I look at it in an explorer window, right? Thanks
Hi, I am not sure if this is your problem or not. Icon files can have multiple versions of the icon, most commonly a (16x16 and 32x32) when the icon is being used the appropriate version is used. The default icon has both 16x16 and 32x32 versions, if you only changed one of them there will be some situation where the one you didn't change is used. To change the other version open the icon in the editor. Right click in the editing window (but not on the icon) and in the list that appears there will be "Current Icon Image Types". Hope this helps, Karl Karl Baum CEO of KGB Technologies Specializing in custom software development.
-
When you create a Windows forms project in VS .NET 2003 you get a file called App.ico, right? So I started drawing in it to get my own icon. I then took the main window and went to the Icon property. I pressed the button there and chose the App.ico file in the project folder. This doesnt work. The exe file created has the standard icon and so does the program when it starts. If I open the ico file in VS it looks just like I drew it. I used the same icon for a contextmenu and it works there. When I minimize the program to the system tray I have the correct icon there but the program doesnt. By the way, an *.ico file should look like the icon itself when I look at it in an explorer window, right? Thanks
It s a bug in VS, that doesnt refresh it resources. Just remove the file (not delete) so VS can know something happened to it (just build or something to create an error), then just re-add it. :) top secret xacc-ide 0.0.1
-
When you create a Windows forms project in VS .NET 2003 you get a file called App.ico, right? So I started drawing in it to get my own icon. I then took the main window and went to the Icon property. I pressed the button there and chose the App.ico file in the project folder. This doesnt work. The exe file created has the standard icon and so does the program when it starts. If I open the ico file in VS it looks just like I drew it. I used the same icon for a contextmenu and it works there. When I minimize the program to the system tray I have the correct icon there but the program doesnt. By the way, an *.ico file should look like the icon itself when I look at it in an explorer window, right? Thanks