By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,096 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

Folder Browser Dialog.

P: 8
I'd like to link a browser box to a button click event. Once the browsed location is selected I would like to populate a text box with the result.Sorry if this is a simple question, but I'm new and stumped. I have searched around the fourm and not found really what I had been looking for.

Best Regards,
M
Apr 23 '07 #1
Share this Question
Share on Google+
2 Replies


samycbe
P: 83
Hi M

1. Create a common dialoge box in your form and name it cd1
2. write the code in command button click

cd1.ShowOpen
text1.text = Cd1.FileName

That's it.

samy
Apr 24 '07 #2

P: 8
Thanks for the Help. It turned out a little different but basically the same.

CD1.ShowDialog()
Textbox1.Text=CD1.SelectedPath

Thanks Again.
M
Apr 24 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.