Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 18th, 2008, 12:45 AM
Registered User
 
Join Date: Sep 2007
Location: delhi, delhi, India.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sauravnimesh
Default opening client side folder browser in c#

Hi,

I am need of a folder browser control from which i can select a folder path on client in C# .

Please help me out in this case



Reply With Quote
  #2 (permalink)  
Old October 18th, 2008, 03:58 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

Drop a FolderBrowserDialog component on your Form and do something like:

Code:
// get folder path to write class files to.
this.codeFolderBrowserDialog.Description = "Select the folder that you want to write class files to.";
System.Windows.Forms.DialogResult result = this.codeFolderBrowserDialog.ShowDialog();
if (result == DialogResult.OK)
{
   Utilities.FolderPath = codeFolderBrowserDialog.SelectedPath;
}
HTH,

Bob

Reply With Quote
  #3 (permalink)  
Old November 13th, 2008, 05:27 AM
Registered User
 
Join Date: Jun 2007
Location: Pune, Maharashtra, India.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to MukeshAgarwal
Default

Are you developing windows appln or web appln.
Reply With Quote
  #4 (permalink)  
Old November 20th, 2008, 05:05 AM
Registered User
 
Join Date: Nov 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Assuming you are NOT developing for Web, tTake a look at FolderView control from http://www.ssware.com/megapack.htm
Reply With Quote
  #5 (permalink)  
Old November 21st, 2008, 07:20 AM
Registered User
 
Join Date: Nov 2008
Location: delhi, delhi, India.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

if you are using c# for window app
 then from this u get complete path of file ,by using this

            OpenFileDialog fdlg = new OpenFileDialog();
            fdlg.Title = "Open File for stock";
            fdlg.InitialDirectory = @"c:\";
            fdlg.Filter = "All files (*.*)|*.*|All files (*.*)|*.*";
            fdlg.FilterIndex = 2;
            fdlg.RestoreDirectory = true;
            if (fdlg.ShowDialog() == DialogResult.OK)
            {

                textBox1.Text = fdlg.FileName ;
            }



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Converting Client-side to Server-side Code kwilliams ASP.NET 2.0 Professional 1 November 21st, 2007 05:25 PM
opening direct file names client side grhind ASP.NET 1.0 and 1.1 Basics 3 August 14th, 2006 03:22 PM
Firing server side events at client side codes mehdi62b ASP.NET 1.0 and 1.1 Basics 6 May 18th, 2005 09:11 AM
sharing a server-side variable with client-side pigtail Javascript How-To 6 November 4th, 2004 02:01 AM
Accessing Server Side Data on Client Side steve456 Classic ASP Professional 3 October 15th, 2003 02:33 PM



All times are GMT -4. The time now is 12:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.