473,473 Members | 2,032 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

question on Select path from user.

my app needs users to input a path, they can type or click a "browse" button to select it.
I only know "OpenFileDialog" to select file, can i apply "OpenFileDialog" in this case?
or is there any other methods to do this?
many thanks~~~.
Kel
Nov 16 '05 #1
6 3686
You can use FolderBrowserDialog for selecting path.

This is available in VS.NET 2003 version only.

--
Shak
(Houston)
"kelkel" <ke****@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
my app needs users to input a path, they can type or click a "browse" button to select it. I only know "OpenFileDialog" to select file, can i apply "OpenFileDialog" in this case? or is there any other methods to do this?
many thanks~~~.
Kel

Nov 16 '05 #2
Check out the FolderBrowser class.
-mike
MVP

"kelkel" <ke****@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
my app needs users to input a path, they can type or click a "browse"
button to select it.
I only know "OpenFileDialog" to select file, can i apply "OpenFileDialog"
in this case?
or is there any other methods to do this?
many thanks~~~.
Kel

Nov 16 '05 #3
Thx Shakir Hussain~~~

Poor~~~ I am using ver.2002 right now. That's y i cant find it......
is there any other method to do that....
"Shakir Hussain" wrote:
You can use FolderBrowserDialog for selecting path.

This is available in VS.NET 2003 version only.

--
Shak
(Houston)
"kelkel" <ke****@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
my app needs users to input a path, they can type or click a "browse"

button to select it.
I only know "OpenFileDialog" to select file, can i apply "OpenFileDialog"

in this case?
or is there any other methods to do this?
many thanks~~~.
Kel


Nov 16 '05 #4
Try this then

http://support.microsoft.com/default...b;EN-US;306285

--
Shak
(Houston)
"kelkel" <ke****@discussions.microsoft.com> wrote in message
news:50**********************************@microsof t.com...
Thx Shakir Hussain~~~

Poor~~~ I am using ver.2002 right now. That's y i cant find it......
is there any other method to do that....
"Shakir Hussain" wrote:
You can use FolderBrowserDialog for selecting path.

This is available in VS.NET 2003 version only.

--
Shak
(Houston)
"kelkel" <ke****@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
my app needs users to input a path, they can type or click a "browse"

button to select it.
I only know "OpenFileDialog" to select file, can i apply
"OpenFileDialog" in this case?
or is there any other methods to do this?
many thanks~~~.
Kel


Nov 16 '05 #5
thx again~~~
can i ask one more simple question?
i have create a button and textbox,
When button1 onClick, it will call a function. the code as below:
private void button1_Click(object sender, System.EventArgs e)
{
ProgramStart(); <---- error
}

static void ProgramStart()
{
//Do something here....
string aaa;
aaa = textBox1.Text; <---- error
}
but seem doesn't work, for the code
aaa = textBox1.Text;
the error is ------- An object reference is required for the nonstatic field,
method, or property 'WinApp.Form1.textBox1'
many many thx~~~


"Shakir Hussain" wrote:
Try this then

http://support.microsoft.com/default...b;EN-US;306285

--
Shak
(Houston)
"kelkel" <ke****@discussions.microsoft.com> wrote in message
news:50**********************************@microsof t.com...
Thx Shakir Hussain~~~

Poor~~~ I am using ver.2002 right now. That's y i cant find it......
is there any other method to do that....
"Shakir Hussain" wrote:
You can use FolderBrowserDialog for selecting path.

This is available in VS.NET 2003 version only.

--
Shak
(Houston)
"kelkel" <ke****@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
> my app needs users to input a path, they can type or click a "browse"
button to select it.
> I only know "OpenFileDialog" to select file, can i apply "OpenFileDialog" in this case?
> or is there any other methods to do this?
> many thanks~~~.
> Kel


Nov 16 '05 #6
Sorry....
I have solved it already....
Thx

"kelkel" wrote:
thx again~~~
can i ask one more simple question?
i have create a button and textbox,
When button1 onClick, it will call a function. the code as below:
private void button1_Click(object sender, System.EventArgs e)
{
ProgramStart(); <---- error
}

static void ProgramStart()
{
//Do something here....
string aaa;
aaa = textBox1.Text; <---- error
}
but seem doesn't work, for the code
aaa = textBox1.Text;
the error is ------- An object reference is required for the nonstatic field,
method, or property 'WinApp.Form1.textBox1'
many many thx~~~


"Shakir Hussain" wrote:
Try this then

http://support.microsoft.com/default...b;EN-US;306285

--
Shak
(Houston)
"kelkel" <ke****@discussions.microsoft.com> wrote in message
news:50**********************************@microsof t.com...
Thx Shakir Hussain~~~

Poor~~~ I am using ver.2002 right now. That's y i cant find it......
is there any other method to do that....
"Shakir Hussain" wrote:

> You can use FolderBrowserDialog for selecting path.
>
> This is available in VS.NET 2003 version only.
>
> --
> Shak
> (Houston)
>
>
> "kelkel" <ke****@discussions.microsoft.com> wrote in message
> news:E2**********************************@microsof t.com...
> > my app needs users to input a path, they can type or click a "browse"
> button to select it.
> > I only know "OpenFileDialog" to select file, can i apply

"OpenFileDialog"
> in this case?
> > or is there any other methods to do this?
> > many thanks~~~.
> > Kel
>
>
>


Nov 16 '05 #7

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

Similar topics

7
by: Herman | last post by:
Hi everyone, I recently installed the Sun J2SE SDK on my machine, and I am having trouble running the java.exe interpreter for my Java compiled code. I remember that I had to set my environment...
4
by: David Sworder | last post by:
Hi, I have a ComboBox that contains 1,400 sorted items . Here's the list: abba apple ... cabba caccaa capple
4
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create...
24
by: Tiraman | last post by:
Hi, I Build my own dll with my own namespace name and i would like to put it in one place but for the project bin folder so all of the projects will be able to use it . i tried to put the dll...
4
by: Jason Kumpf | last post by:
OK I've been staring at this code all day and still with everything I have tried I cannot figure out two problems I am having. Once is why the space limit for the directory I create in the code...
1
by: Marko Vuksanovic | last post by:
I used the following code for implementing a file upload progress indicator, using UpdateProgress Panel, though I have a problem that FileUpload.Has File always returns false. Any suggestions what...
6
by: Jim M | last post by:
I've been distributing a fairly mature, very specific MS Access application to end users in small offices of colleges for several years now. This is a part-time venture and low volume operation-...
6
by: Ronald Raygun | last post by:
I want to be able to randomly select the following from an array: 1). An image 2). A piece of text (name of tge image) 3). A piece of text (description of the image) I want to be able to...
1
by: pitjpz | last post by:
We have moved our Database to another server. The server it was on used SQL 4 and the new one its on now uses SQL5 the only problem we can find is that when you attempt to delete a record from...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.