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. How add multiple icons

How add multiple icons

Scheduled Pinned Locked Moved C#
windows-adminquestion
6 Posts 4 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.
  • M Offline
    M Offline
    Mark F
    wrote on last edited by
    #1

    I have two icons. One is for the program and the other will be used for the registry file association for the documents used by the app. How do you have more than on icon image for an executable? Thanks, Mark

    G S 2 Replies Last reply
    0
    • M Mark F

      I have two icons. One is for the program and the other will be used for the registry file association for the documents used by the app. How do you have more than on icon image for an executable? Thanks, Mark

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      As far as I know an icon cannot be specified from a managed dll/exe

      my articles

      M 1 Reply Last reply
      0
      • G Giorgi Dalakishvili

        As far as I know an icon cannot be specified from a managed dll/exe

        my articles

        M Offline
        M Offline
        Mark F
        wrote on last edited by
        #3

        Giorgi Dalakishvili wrote:

        As far as I know an icon cannot be specified from a managed dll/exe

        I'm not sure what you mean. Executables (.exe,.dll) can have many icons (e.g., shell32.dll). In an registry association you pick one using the icon's position. For example: C:\Windows\System32\shell32.dll,2 I simply want to know how to embed two icons into my application .exe. Mark

        G N 2 Replies Last reply
        0
        • M Mark F

          Giorgi Dalakishvili wrote:

          As far as I know an icon cannot be specified from a managed dll/exe

          I'm not sure what you mean. Executables (.exe,.dll) can have many icons (e.g., shell32.dll). In an registry association you pick one using the icon's position. For example: C:\Windows\System32\shell32.dll,2 I simply want to know how to embed two icons into my application .exe. Mark

          G Offline
          G Offline
          Giorgi Dalakishvili
          wrote on last edited by
          #4

          Mark F. wrote:

          Executables (.exe,.dll) can have many icons (e.g., shell32.dll). In an registry association you pick one using the icon's position. For example: C:\Windows\System32\shell32.dll,2

          I know that but if I'm not mistaken you can't choose an if the dll or executable was compiled from a .NET language then you can't choose icon from it

          my articles

          1 Reply Last reply
          0
          • M Mark F

            Giorgi Dalakishvili wrote:

            As far as I know an icon cannot be specified from a managed dll/exe

            I'm not sure what you mean. Executables (.exe,.dll) can have many icons (e.g., shell32.dll). In an registry association you pick one using the icon's position. For example: C:\Windows\System32\shell32.dll,2 I simply want to know how to embed two icons into my application .exe. Mark

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #5

            Add them as embedded resources


            only two letters away from being an asset

            1 Reply Last reply
            0
            • M Mark F

              I have two icons. One is for the program and the other will be used for the registry file association for the documents used by the app. How do you have more than on icon image for an executable? Thanks, Mark

              S Offline
              S Offline
              Squeaker
              wrote on last edited by
              #6

              I found this article that gives some good info on this subject: http://msdn2.microsoft.com/en-us/library/ms951285.aspx[^] Best regards- Squeaker

              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