Would you like to react to this message? Create an account in a few clicks or log in to continue.
For Questions and Assistance please use the proper Category.. please..
Welcome guys!!.. In order for you guys to post your Questions and assistance requests,, please REGISTER first.. Only members can post.. If you have requests then feel free to email ADMIN neuron or SPAMMER onatzky.. thanks!
Subject: USing the File Browser in VB.net Thu Aug 27, 2009 8:29 am
Code:
' First create a FolderBrowserDialog object Dim FolderBrowserDialog1 As New FolderBrowserDialog
' Then use the following code to create the Dialog window ' Change the .SelectedPath property to the default location With FolderBrowserDialog1 ' Desktop is the root folder in the dialog. .RootFolder = Environment.SpecialFolder.Desktop ' Select the C:\Windows directory on entry. .SelectedPath = "c:\windows" ' Prompt the user with a custom message. .Description = "Select the source directory" If .ShowDialog = DialogResult.OK Then ' Display the selected folder if the user clicked on the OK button. MessageBox.Show(.SelectedPath) End If End With