open file dialog in vb.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abdulbasith
    New Member
    • Dec 2006
    • 10

    open file dialog in vb.net

    open file dialog needs compulsary any file to be selected, but i need to open only the folders, once i open the folder i need to retrieve the directory path alone.

    can any one help me in this..

    thanks and regards

    basith
  • radcaesar
    Recognized Expert Contributor
    • Sep 2006
    • 759

    #2
    For this u have to use FolderBrowserDi alog

    Originally posted by abdulbasith
    open file dialog needs compulsary any file to be selected, but i need to open only the folders, once i open the folder i need to retrieve the directory path alone.

    can any one help me in this..

    thanks and regards

    basith

    Comment

    • bplacker
      New Member
      • Sep 2006
      • 121

      #3
      and get the 'SelectedFolder ' property after it has been opened

      Dim fDialog as new FolderBrowseDia log
      dim folder as String

      if (fDialog.showDi alog() = ...OK)
      folder = fDialog.Selecte dFolder()
      end if

      Comment

      Working...