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. C# access to a directory path

C# access to a directory path

Scheduled Pinned Locked Moved C#
csharpquestion
4 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.
  • J Offline
    J Offline
    jazzgirl
    wrote on last edited by
    #1

    In a C# 2008/2010 desktop application, I need to be able to allow users the ability to select a file they need to work with. There needs to be a default directory path. However I need to be able to allow users the ability to select files from whatever directory path they have access to. Thus can you tell me. show me code, and/or point me to a url I can use as a reference to accomplish my goal?

    A A 2 Replies Last reply
    0
    • J jazzgirl

      In a C# 2008/2010 desktop application, I need to be able to allow users the ability to select a file they need to work with. There needs to be a default directory path. However I need to be able to allow users the ability to select files from whatever directory path they have access to. Thus can you tell me. show me code, and/or point me to a url I can use as a reference to accomplish my goal?

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

      use OpenFileDialog Control. this will allow you to choose any file. You can get file name using OpenFileDialog.FileName

      1 Reply Last reply
      0
      • J jazzgirl

        In a C# 2008/2010 desktop application, I need to be able to allow users the ability to select a file they need to work with. There needs to be a default directory path. However I need to be able to allow users the ability to select files from whatever directory path they have access to. Thus can you tell me. show me code, and/or point me to a url I can use as a reference to accomplish my goal?

        A Offline
        A Offline
        Anna King
        wrote on last edited by
        #3

        OpenFileDialog control seems to be the only option for you as it can allow users to choose any file from whatever directory path they want to access.

        J 1 Reply Last reply
        0
        • A Anna King

          OpenFileDialog control seems to be the only option for you as it can allow users to choose any file from whatever directory path they want to access.

          J Offline
          J Offline
          jazzgirl
          wrote on last edited by
          #4

          thanks!

          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