How can I load the 'Open Dialog Box' in my project

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MaryKJolly
    New Member
    • Sep 2008
    • 10

    How can I load the 'Open Dialog Box' in my project

    I want to put a 'Browse' button in my form to let the user to browse for his file and store the path in the database. How can I do this in VB6?
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    you need to use common dialog control for that.

    Comment

    • rpicilli
      New Member
      • Aug 2008
      • 77

      #3
      HI there.

      First you need to put a Folder Browser Common Dialog into your form.

      After that usually you will use the property Path of the Folder Browser to get the PATH of your choise.

      Code:
              Me.FolderBrowserDialog1.ShowDialog()
              Dim sPath As String
              sPath = Me.FolderBrowserDialog1.SelectedPath

      From this point is just a matter of save into your data base.

      I hope this help.

      RPicilli

      Comment

      Working...