473,387 Members | 1,603 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Browse to a directory

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

TIA - Jeffrey.
Nov 21 '05 #1
4 1308
Is this what you need?

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

Hth Greetz Peter

--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning.

"UJ" <fr**@nowhere.com> schreef in bericht
news:en**************@TK2MSFTNGP10.phx.gbl...
How do you browse to a directory - much like file dialog except for
directories?

TIA - Jeffrey.

Nov 21 '05 #2
UJ
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.

"Peter Proost" <pp*****@nospam.hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Is this what you need?

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

Hth Greetz Peter

--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning.

"UJ" <fr**@nowhere.com> schreef in bericht
news:en**************@TK2MSFTNGP10.phx.gbl...
How do you browse to a directory - much like file dialog except for
directories?

TIA - Jeffrey.


Nov 21 '05 #3
"UJ" <fr**@nowhere.com> schrieb:
How do you browse to a directory - much like file dialog except for
directories?


Displaying the dialog for choosing a directory
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=folderbrowserdialog&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #4
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

--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning.

"UJ" <fr**@nowhere.com> schreef in bericht
news:eH**************@TK2MSFTNGP09.phx.gbl...
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.

"Peter Proost" <pp*****@nospam.hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Is this what you need?

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

Hth Greetz Peter

--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

"UJ" <fr**@nowhere.com> schreef in bericht
news:en**************@TK2MSFTNGP10.phx.gbl...
How do you browse to a directory - much like file dialog except for
directories?

TIA - Jeffrey.



Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: mscir | last post by:
I just installed ASP after a couple of years of not using it, PWS Win 98 SE. A couple of things are throwing me, and I can't remember whether these worked in the past. One is I can't...
21
by: strutsng | last post by:
<input type="file"> only allows the user to browse for files. How about "browse for folder" dialog? Can html/javascript do that? I couldn't find any syntax for that. If not, please advise what...
5
by: deko | last post by:
I'm using the below code to allow users to browse for and select a folder. After selecting a folder from the dialog, the full path is returned to a text box and saved. The next time the user...
5
by: Eric Twietmeyer | last post by:
Hi, Does anyone know why starting with VS.NET 2002 (and same with 2003) it is no longer possible to browse to a directory that has "ept" as part of the path? It worked fine in Vc 6.x. My...
4
by: Larry Brindise | last post by:
I have an asp.net application. I have used VStudio Web Deployment Project to create the MSI file. I copy the MSI file from my developer PC to my test server running Win2003Server Web Edition. I...
2
by: Larry Brindise | last post by:
I have deployed an ASP.NET application successfully on Windows 2000 and 2003. When I deploy it on an XP Pro machine (fresh install with framework 1.1 and IIS installed), I get a very unexpected...
5
by: Mike Moore | last post by:
I need to create something very similiar to the browse folder capability. This would allow me to support the following - A user would create a document on their server, then they would need to...
3
by: Highlander | last post by:
Hello all. Consider the following HTA: <HTML> <HEAD> <TITLE></TITLE></HEAD> <BODY> <SCRIPT LANGUAGE="VBScript"> Sub ButBrowse_onclick() '-- show browse window and Get file path:
7
by: nicknack | last post by:
Hello. I would like to give my user an option to find a directory and choose it. Its just like the FileUpload control but the fileupload control choose only files (if you choose a directory and...
0
by: William Gill | last post by:
I am trying to convert a Python App I wrote that generates html docs from a template. It comes in handy when doing things like photo galleries where dozens of pages are identical except the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.