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. C#
  4. getting the icon and extension

getting the icon and extension

Scheduled Pinned Locked Moved C#
questiontutorial
6 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
    Adrian Soon
    wrote on last edited by
    #1

    Hi all, How do I able to get all the icons and extension of my files in my computer using coding?:confused: is there anyway? I know is something to do with HKEY_CLASSES_ROOT but I not sure how to code it. is there any sample? thanks.:-D I wish to take them out and then place it on a treeview. so user can see the all my treeview having diff icons.

    C M 2 Replies Last reply
    0
    • A Adrian Soon

      Hi all, How do I able to get all the icons and extension of my files in my computer using coding?:confused: is there anyway? I know is something to do with HKEY_CLASSES_ROOT but I not sure how to code it. is there any sample? thanks.:-D I wish to take them out and then place it on a treeview. so user can see the all my treeview having diff icons.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Unless a file is associated with an extension in Windows Explorer, nothing is stored in the registry. Do you only want to find registered file types ? Then they are in the registry. Otherwise, you can't find them.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • A Adrian Soon

        Hi all, How do I able to get all the icons and extension of my files in my computer using coding?:confused: is there anyway? I know is something to do with HKEY_CLASSES_ROOT but I not sure how to code it. is there any sample? thanks.:-D I wish to take them out and then place it on a treeview. so user can see the all my treeview having diff icons.

        M Offline
        M Offline
        Michael Sync
        wrote on last edited by
        #3

        I got this link from this thread.. Hope it helps.

        Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

        A 1 Reply Last reply
        0
        • M Michael Sync

          I got this link from this thread.. Hope it helps.

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

          A Offline
          A Offline
          Adrian Soon
          wrote on last edited by
          #4

          O the thread is good.. but I do need some sample as I have no idea how to start.

          M 1 Reply Last reply
          0
          • A Adrian Soon

            O the thread is good.. but I do need some sample as I have no idea how to start.

            M Offline
            M Offline
            Michael Sync
            wrote on last edited by
            #5

            Adrian Soon wrote:

            I do need some sample as I have no idea how to start.

            As I wrote ~

            I got this link from this thread..

            Don't you see the sample code in that link? Well, it is VB code so you might need VB to C# converter.... or you can simply change this code to C# if you have some idea about VB..

            Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

            A 1 Reply Last reply
            0
            • M Michael Sync

              Adrian Soon wrote:

              I do need some sample as I have no idea how to start.

              As I wrote ~

              I got this link from this thread..

              Don't you see the sample code in that link? Well, it is VB code so you might need VB to C# converter.... or you can simply change this code to C# if you have some idea about VB..

              Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

              A Offline
              A Offline
              Adrian Soon
              wrote on last edited by
              #6

              Hi I tried pasting the code. but it fails. Conversion was attempted, however the following errors were reported: -- line 6 col 9: invalid NonModuleDeclaration I nt sure how to get it done. what went wrong?

              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