PC Review


Reply
Thread Tools Rate Thread

How to browse folder starting from my application folder?

 
 
=?Utf-8?B?RmVpIExp?=
Guest
Posts: n/a
 
      1st Nov 2004

 
Reply With Quote
 
 
 
 
Peter Jausovec
Guest
Posts: n/a
 
      1st Nov 2004
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" <(E-Mail Removed)> je napisal v sporočilo
news:920FE5C1-8B1E-489D-B04B-(E-Mail Removed) ...
>



 
Reply With Quote
 
=?Utf-8?B?RmVpIExp?=
Guest
Posts: n/a
 
      1st Nov 2004
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" <(E-Mail Removed)> je napisal v sporoèilo
> news:920FE5C1-8B1E-489D-B04B-(E-Mail Removed) ...
> >

>
>
>

 
Reply With Quote
 
Morten Wennevik
Guest
Posts: n/a
 
      2nd Nov 2004
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]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Browse for folder - not selecting folder Trish Smith Microsoft Excel Programming 8 18th Sep 2008 09:23 AM
"Outlook Today" as default folder on starting application ivan nobbs Microsoft Outlook Discussion 9 9th Jun 2008 09:27 AM
Browse Folder ( Folder Options ) won't change after new selection marca Windows XP Security 0 14th Jul 2004 05:50 AM
Browse Folder dialog with option to make New Folder Bradley C. Hammerstrom Microsoft Access Getting Started 2 6th Jan 2004 07:33 AM
Browse to Folder instead of Folder + File Dan Microsoft ASP .NET 5 22nd Nov 2003 12:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:09 PM.