By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,190 Members | 1,412 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,190 IT Pros & Developers. It's quick & easy.

How to browse folder starting from my application folder?

P: n/a

Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi,

If you mean how to start browsing from the folder where your application is
then use Application.ExecutablePath (this will return you the full path to
your application and executable name)

Regards,
Peter Jausovec
(http://blog.jausovec.net)

"Fei Li" <Fe***@discussions.microsoft.com> je napisal v sporočilo
news:92**********************************@microsof t.com ...

Nov 16 '05 #2

P: n/a
No, I mean UI browse.
"Peter Jausovec" wrote:
Hi,

If you mean how to start browsing from the folder where your application is
then use Application.ExecutablePath (this will return you the full path to
your application and executable name)

Regards,
Peter Jausovec
(http://blog.jausovec.net)

"Fei Li" <Fe***@discussions.microsoft.com> je napisal v sporoèilo
news:92**********************************@microsof t.com ...


Nov 16 '05 #3

P: n/a
Hi Fei Li,

You can use the FolderBrowserDialog to browse folders or OpenFileDialog to
browse files and folders.
You can use the SelectedPath property of the FolderBrowserDialog (with
RootFolder set) or the InitialDirectory property of the OpenFileDialog.

--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.