How to browse folder starting from my application folder?

  • Thread starter Thread starter Guest
  • Start date Start date
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)
 
No, I mean UI browse.


Peter Jausovec said:
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)
 
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.
 

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