Browse to a directory

  • Thread starter Thread starter UJ
  • Start date Start date
U

UJ

How do you browse to a directory - much like file dialog except for
directories?

TIA - Jeffrey.
 
Is this what you need?

Dim obj As New FolderBrowserDialog
obj.RootFolder = 0
obj.SelectedPath =
Environment.GetFolderPath(Environment.SpecialFolder.MyPictures)
obj.ShowDialog()

Hth Greetz Peter
 
That's exactly what I need.

Yet again - it's easy when you know what it's called. But trying to find it
is difficult.

Thanks again.
 
Forgot to mention

obj.RootFolder = 0

isn't necessary, but you can specify it of you for example only want to
show the mypictures directory like this

obj.RootFolder = Environment.SpecialFolder.MyPictures

Greetz Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top