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. Folder browser dialog

Folder browser dialog

Scheduled Pinned Locked Moved C#
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.
  • H Offline
    H Offline
    hiremath71
    wrote on last edited by
    #1

    hi, i am using a folder browser dialog and selecting the pericular folder. Now my qusestion is how to get the files of selected folder. pls help me. With regards Prasad:)

    A 1 Reply Last reply
    0
    • H hiremath71

      hi, i am using a folder browser dialog and selecting the pericular folder. Now my qusestion is how to get the files of selected folder. pls help me. With regards Prasad:)

      A Offline
      A Offline
      AB7771
      wrote on last edited by
      #2

      use Directory.GetFiles(path) this will give u the list of all the files in that folder.

      Thanks & Regards, Pramod "Everyone is a genius at least once a year"

      H 1 Reply Last reply
      0
      • A AB7771

        use Directory.GetFiles(path) this will give u the list of all the files in that folder.

        Thanks & Regards, Pramod "Everyone is a genius at least once a year"

        H Offline
        H Offline
        hiremath71
        wrote on last edited by
        #3

        hi,friend i am working on c# directory. i am not getting this option itself pls help me thanks prasad:)

        S A 2 Replies Last reply
        0
        • H hiremath71

          hi,friend i am working on c# directory. i am not getting this option itself pls help me thanks prasad:)

          S Offline
          S Offline
          Stefan Troschuetz
          wrote on last edited by
          #4

          The FolderBrowserDialog has a property called SelectedPath that gives you the path selected by the user. Use this path together with the classes provided by the System.IO namespace to get further information about the selected directory and its content. For example, to get the names of the files in the directory pass the return value of FolderBrowserDialog.SelectedPath to the static Directory.GetFiles method.


          "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." - Rick Cook

          www.troschuetz.de

          1 Reply Last reply
          0
          • H hiremath71

            hi,friend i am working on c# directory. i am not getting this option itself pls help me thanks prasad:)

            A Offline
            A Offline
            AB7771
            wrote on last edited by
            #5

            add the namespace System.io

            Thanks & Regards, Pramod "Everyone is a genius at least once a year"

            H 1 Reply Last reply
            0
            • A AB7771

              add the namespace System.io

              Thanks & Regards, Pramod "Everyone is a genius at least once a year"

              H Offline
              H Offline
              hiremath71
              wrote on last edited by
              #6

              thank you friend it is working with regards prasad:)

              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