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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. converting icon to image

converting icon to image

Scheduled Pinned Locked Moved Visual Basic
helpgraphics
2 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.
  • G Offline
    G Offline
    gladsmhe
    wrote on last edited by
    #1

    hi could anybody help me with this problem.. im trying to extract icon form a file and put it into the imagelist and display this icon to the picturebox.. but i got error saying "system.drawing.icon cannot converted to system.drawing.image"..:(

    T 1 Reply Last reply
    0
    • G gladsmhe

      hi could anybody help me with this problem.. im trying to extract icon form a file and put it into the imagelist and display this icon to the picturebox.. but i got error saying "system.drawing.icon cannot converted to system.drawing.image"..:(

      T Offline
      T Offline
      Thomas Stockwell
      wrote on last edited by
      #2

      If the icon you are extracting is of proper .NET icon format then you should be able to use the methods of the icon class to convert to a bitmap (.ToBitmap() possibly). If the file is not carrying any .NET native icons you will need to use icon API commands. Try searching the site here, I think I have seen at least one article on this.

      Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios[^]

      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