Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting data from Folder Browser Dialog 1

Status
Not open for further replies.
Apr 4, 2001
34
0
0
GB
Hi,
I'm new to VB I am using the VB Express Beta. I am trying to write a program that selects a folder that my data is in. I am using the FolderBrowserDialog class to select the folder but I dont know how to store the selected folder. I want it stored in a textbox. How do I do it?

Cheers Yesterdays
 
Code:
        Dim FolderBrowserDialog1 As FolderBrowserDialog = New FolderBrowserDialog

        If (FolderBrowserDialog1.ShowDialog = DialogResult.OK) Then

            TextBox1.Text = FolderBrowserDialog1.SelectedPath

        End If
I did it with VS 2003, but I don't think it is different in 2005.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top