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.
 
Back
Top