Folder Browser Dialog.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mmoeller
    New Member
    • Apr 2007
    • 8

    #1

    Folder Browser Dialog.

    I'd like to link a browser box to a button click event. Once the browsed location is selected I would like to populate a text box with the result.Sorry if this is a simple question, but I'm new and stumped. I have searched around the fourm and not found really what I had been looking for.

    Best Regards,
    M
  • samycbe
    New Member
    • Feb 2007
    • 83

    #2
    Hi M

    1. Create a common dialoge box in your form and name it cd1
    2. write the code in command button click

    cd1.ShowOpen
    text1.text = Cd1.FileName

    That's it.

    samy

    Comment

    • mmoeller
      New Member
      • Apr 2007
      • 8

      #3
      Thanks for the Help. It turned out a little different but basically the same.

      CD1.ShowDialog( )
      Textbox1.Text=C D1.SelectedPath

      Thanks Again.
      M

      Comment

      Working...