Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
.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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 18th, 2008, 12:45 AM
Registered User
Join Date: Sep 2007
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#


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

Old October 18th, 2008, 03:58 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts

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

// 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;


Old November 13th, 2008, 05:27 AM
Registered User
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to MukeshAgarwal

Are you developing windows appln or web appln.
Old November 20th, 2008, 05:05 AM
Registered User
Join Date: Nov 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

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

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 ;

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

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.