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. Getting Address bar in FolderBrowserDialog

Getting Address bar in FolderBrowserDialog

Scheduled Pinned Locked Moved C#
data-structures
3 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.
  • A Offline
    A Offline
    Ankit Aneja
    wrote on last edited by
    #1

    I am using FolderBrowserDialog to Browse for folder I want to show the address in textbox also which I select in FolderBrowserDialog or can directly type the address of folder in textbox instead of selecting it from tree view control FolderBrowserDialog obj=new FolderBrowserDialog(); obj.ShowNewFolderButton=true;

    Ankit Aneja "Nothing is impossible. The word itself says - I M possible"

    D 1 Reply Last reply
    0
    • A Ankit Aneja

      I am using FolderBrowserDialog to Browse for folder I want to show the address in textbox also which I select in FolderBrowserDialog or can directly type the address of folder in textbox instead of selecting it from tree view control FolderBrowserDialog obj=new FolderBrowserDialog(); obj.ShowNewFolderButton=true;

      Ankit Aneja "Nothing is impossible. The word itself says - I M possible"

      D Offline
      D Offline
      Developer611
      wrote on last edited by
      #2

      Hi sweety , it's very easy . enjoy it : // Initialize FolderBrowserDialog FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog(); // If dialogResult result is OK then set txtAddress by folderBrowserDialog // SelectedPath's property . if (folderBrowserDialog.ShowDialog() == DialogResult.OK) { string selectedPath = folderBrowserDialog.SelectedPath; txtAddress.Text = selectedPath; } have a good time.

      DMASTER

      A 1 Reply Last reply
      0
      • D Developer611

        Hi sweety , it's very easy . enjoy it : // Initialize FolderBrowserDialog FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog(); // If dialogResult result is OK then set txtAddress by folderBrowserDialog // SelectedPath's property . if (folderBrowserDialog.ShowDialog() == DialogResult.OK) { string selectedPath = folderBrowserDialog.SelectedPath; txtAddress.Text = selectedPath; } have a good time.

        DMASTER

        A Offline
        A Offline
        Ankit Aneja
        wrote on last edited by
        #3

        I want it on folder browser dialog which gets opened on clicking browse button

        Ankit Aneja "Nothing is impossible. The word itself says - I M possible"

        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