473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

FolderBrowserDialog Help Plz

Hi Everyone,

I'm getting stumped here. I've been trying to use the FolderBrowserDialog
for the first time, but to no avail. Can someone please give me adive on how
to use this. I don't know if I sould be having a component in my toolbox
like openfile/savefile. Or where to begin with this.

I am trying to write a C# window form. Any and all help is truly
appreciated.

MikeY
Nov 17 '05 #1
4 1608
Hi MikeY,
you can create the FolderBrowseDialog programatically, it is not a
component. Some sample code which shows the dialog and gets the path
selected by the user is:

FolderBrowserDialog folderBrowse = new FolderBrowserDialog();
folderBrowse.ShowDialog();

string selectedPath = folderBrowse.SelectedPath;
Hope that helps
Mark R Dawson
http://www.markdawson.org


"MikeY" wrote:
Hi Everyone,

I'm getting stumped here. I've been trying to use the FolderBrowserDialog
for the first time, but to no avail. Can someone please give me adive on how
to use this. I don't know if I sould be having a component in my toolbox
like openfile/savefile. Or where to begin with this.

I am trying to write a C# window form. Any and all help is truly
appreciated.

MikeY

Nov 17 '05 #2
Txs Mark,

But I think the problem is that I am running Framework 1.0. From my further
reading, I understand that I would need to have Framework 1.1 to be able to
utilize this. Unfortunately I cannot afford a new version at this time and
will have to get around it with straight textbox input to get at my folder.

Thanks again Mark

MikeY

"Mark R. Dawson" <Ma*********@discussions.microsoft.com> wrote in message
news:C1**********************************@microsof t.com...
Hi MikeY,
you can create the FolderBrowseDialog programatically, it is not a
component. Some sample code which shows the dialog and gets the path
selected by the user is:

FolderBrowserDialog folderBrowse = new FolderBrowserDialog();
folderBrowse.ShowDialog();

string selectedPath = folderBrowse.SelectedPath;
Hope that helps
Mark R Dawson
http://www.markdawson.org


"MikeY" wrote:
Hi Everyone,

I'm getting stumped here. I've been trying to use the FolderBrowserDialog
for the first time, but to no avail. Can someone please give me adive on
how
to use this. I don't know if I sould be having a component in my toolbox
like openfile/savefile. Or where to begin with this.

I am trying to write a C# window form. Any and all help is truly
appreciated.

MikeY

Nov 17 '05 #3
Are you using VS2003? I think it is only available in 2003.

-Atul, Sky Software http://www.ssware.com
Shell MegaPack For ActiveX & .Net - Windows Explorer Like Shell UI Controls
"MikeY" <mi*******@yaho.com> wrote in message
news:Ru*******************@news20.bellglobal.com.. .
Hi Everyone,

I'm getting stumped here. I've been trying to use the FolderBrowserDialog
for the first time, but to no avail. Can someone please give me adive on
how to use this. I don't know if I sould be having a component in my
toolbox like openfile/savefile. Or where to begin with this.

I am trying to write a C# window form. Any and all help is truly
appreciated.

MikeY

Nov 17 '05 #4
No, I'm using VS2002. BAH. Oh well, can't have it all I guess. Back to
textbox input for the folder location.

MikeY

"Atul" <atulatsswaredotcom> wrote in message
news:eo*************@TK2MSFTNGP15.phx.gbl...
Are you using VS2003? I think it is only available in 2003.

-Atul, Sky Software http://www.ssware.com
Shell MegaPack For ActiveX & .Net - Windows Explorer Like Shell UI
Controls
"MikeY" <mi*******@yaho.com> wrote in message
news:Ru*******************@news20.bellglobal.com.. .
Hi Everyone,

I'm getting stumped here. I've been trying to use the FolderBrowserDialog
for the first time, but to no avail. Can someone please give me adive on
how to use this. I don't know if I sould be having a component in my
toolbox like openfile/savefile. Or where to begin with this.

I am trying to write a C# window form. Any and all help is truly
appreciated.

MikeY


Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Anja | last post by:
I have installed the new Visual Studio 2003 and implemented the FolderBrowserDialog. Everything works fine, if I open the FolderBrowserDialog before opening a Database Connection. If I open...
25
by: | last post by:
Hi, The following code shows the FolderBrowserDialog = broken. FolderBrowserDialog folderDialog = new FolderBrowserDialog(); folderDialog.ShowNewFolderButton = false;...
1
by: alf | last post by:
Hi, I am using a FolderBrowserDialog to allow the user to select a folder as follows: FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog(); folderBrowserDialog1.RootFolder =...
9
by: hhh12347 | last post by:
FolderBrowserDialog crashes on my Windows 2000 computer. Here is a C# test program: using System; using System.Windows.Forms; public class TestForm : Form { FolderBrowserDialog...
0
by: Tommy Clark | last post by:
I am using Microsoft Development Environment 2003 Version 7.1.3088 and .NET Framework 1.1 Version 1.1.4322 SP1. I have an MFC application that we have ported to .NET and have added the...
6
by: John Krueger | last post by:
The FolderBrowserDialog control in my toolbox has vanished! I did not delibratly remove it and it is just not there anymore. I tried to add it back to the toolbox but there isn't even a .NET...
12
by: JohnR | last post by:
I have narrowed a problem down to a simple example. A form with two buttons. One EXIT and one FBD. The exit button does an "END" to end the application. The FBD button does a...
4
by: hotmit | last post by:
I'm trying to create a program that dynamicly saves and loads path of a FolderBrowserDialog , but I ran into a problem. Since FolderBrowserDialog is not a Control, therefore it doesn't have...
3
by: antuantuan | last post by:
Hi. How can I initialize a FolderBrowserDialog choosing a particular RootFolder? I saw that FolderBrowserDialog has a RootFolder member, but it accepts only an Environment.SpecialFolder (but I...
2
by: Marcel Brekelmans | last post by:
Hi, I'm trying to display a MessageBox after a FolderBrowserDialog. I see that it gets displayed, but not activated. The form is not in front and when I have some other forms open the MessageBox...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.