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. Icon "Lock Out" Mystery

Icon "Lock Out" Mystery

Scheduled Pinned Locked Moved C#
csharpvisual-studiohelpquestion
3 Posts 2 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.
  • P Offline
    P Offline
    PDTUM
    wrote on last edited by
    #1

    Hello, I just completed a C# application (VS 2008) and was attempting to put an icon in the bar when I got an unusual error message. It states that the Icon argument will only accept a picture as an icon, even though the menu is calling for an .ico file. I have tried a few different files just to be sure, but all derive the same message. There is a default icon already loaded and I need to replace it. Although this is just a click and install item, I am baffled (and almost embarrassed) as to why I am getting this message and I am unable to load a file. Please tell me what I have missed....?? Thank you, Pat

    M 1 Reply Last reply
    0
    • P PDTUM

      Hello, I just completed a C# application (VS 2008) and was attempting to put an icon in the bar when I got an unusual error message. It states that the Icon argument will only accept a picture as an icon, even though the menu is calling for an .ico file. I have tried a few different files just to be sure, but all derive the same message. There is a default icon already loaded and I need to replace it. Although this is just a click and install item, I am baffled (and almost embarrassed) as to why I am getting this message and I am unable to load a file. Please tell me what I have missed....?? Thank you, Pat

      M Offline
      M Offline
      Martin Jarvis
      wrote on last edited by
      #2

      is the .ico file and actual icon (or just a renamed bitmap). It may be worth checking in an icon editor ([^])


      Freestyle Interactive Ltd | Martin on .Net

      P 1 Reply Last reply
      0
      • M Martin Jarvis

        is the .ico file and actual icon (or just a renamed bitmap). It may be worth checking in an icon editor ([^])


        Freestyle Interactive Ltd | Martin on .Net

        P Offline
        P Offline
        PDTUM
        wrote on last edited by
        #3

        Thank you Martin, Not sure how that could have happened, but you are exactly correct. Apparently, the file was marked as an Icon but the application did not recognize it as one. I appreciate your help and have marked your answer as the correct solution. Best regards, Pat

        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