At the moment I am using this:
But that only allows me to open specific files. Can I make it so I can open a folder?Code:Dim Open As New OpenFileDialog
Open.ShowDialog()
TextBox2.Text = Open.FileName
Printable View
At the moment I am using this:
But that only allows me to open specific files. Can I make it so I can open a folder?Code:Dim Open As New OpenFileDialog
Open.ShowDialog()
TextBox2.Text = Open.FileName
Use the FolderBrowserDialog.
Thanks!
This is my new code:
On the last line should I be using RootFolder or is there another alternative? Also, whatever file I open Textbox2 always shows a "0" not the folder location. Why is this?Code:Dim Open As New FolderBrowserDialog
Open.ShowDialog()
TextBox2.Text = Open.RootFolder
Of all the properties which one looks like it would make the most sense of a user selecting a path?
#2048
[Recomendation] do not use "Open" as the object name
really?
Did you read the documentation linked?
So... when you read "Gets or sets the path selected by the user." ... that didn't trigger anything?\
-tg
Yeah I've got it sorted now. Thanks everyone :)