Home All Groups Group Topic Archive Search About

button to get a directory

Author
8 Aug 2006 9:46 PM
Joris De Groote
Hi,

I have a textbox where users can enter a directory which the program then
uses. How can I add a button to let the users select a directory and the
selected directory be placed in the textbox? (I know how to add a button,
but I don't know the code for this).

Thanks
Joris De Groote

Author
8 Aug 2006 10:28 PM
Herfried K. Wagner [MVP]
"Joris De Groote" <joris.degro***@skynet.be> schrieb:
> I have a textbox where users can enter a directory which the program then
> uses. How can I add a button to let the users select a directory and the
> selected directory be placed in the textbox? (I know how to add a button,
> but I don't know the code for this).

Displaying the dialog for choosing a directory
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=folderbrowserdialog&lang=en>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
9 Aug 2006 4:41 AM
Cor Ligthert [MVP]
>
> Displaying the dialog for choosing a directory
> <URL:http://dotnet.mvps.org/dotnet/faqs/?id=folderbrowserdialog&lang=en>
>
Be aware that there is in version Net 1.1 a serious bug without the service
pack for that.

:-)

Cor

Show quoteHide quote
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>