Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Setting application icon doesnt work

Setting application icon doesnt work

Scheduled Pinned Locked Moved C#
csharpvisual-studiowinformsgraphicsquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #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

    K L A 3 Replies Last reply
    0
    • A Anonymous

      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

      K Offline
      K Offline
      Karl 2000
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • A Anonymous

        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

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • A Anonymous

          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

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          I managed to get both the problems you described. Your solutions solved it. Thanks!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups