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 to add system drives icons to tree View

How to add system drives icons to tree View

Scheduled Pinned Locked Moved C#
sysadmindata-structurestutorialquestion
3 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.
  • N Offline
    N Offline
    Naveed727
    wrote on last edited by
    #1

    I want to add system drives including dektop, network, my doc icons to my tree view. How can i get the images of the drives and other drives of the system. I used dirveinfo() but not doing my work.

    S R 2 Replies Last reply
    0
    • N Naveed727

      I want to add system drives including dektop, network, my doc icons to my tree view. How can i get the images of the drives and other drives of the system. I used dirveinfo() but not doing my work.

      S Offline
      S Offline
      Spacix One
      wrote on last edited by
      #2

      You'd need to load those icons from the windows dll's that hold them and add um to an Imagelist. Then access the correct icon from the image list from there, or (depends on what you are trying to do) just add a System.Windows.Forms.FolderBrowserDialog


      -Spacix All your skynet questions[^] belong to solved

      1 Reply Last reply
      0
      • N Naveed727

        I want to add system drives including dektop, network, my doc icons to my tree view. How can i get the images of the drives and other drives of the system. I used dirveinfo() but not doing my work.

        R Offline
        R Offline
        Ravenet
        wrote on last edited by
        #3

        U can get system icon by pass the Index for systemIcon class.

        Cheers,Earn and Enjoy RRave MCTS,MCPD http://ravesoft.blogspot.com

        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