What's Here?
- Members: 131,863
- Replies: 470,106
- Topics: 72,858
- Snippets: 2,536
- Tutorials: 664
- Total Online: 1,525
- Members: 89
- Guests: 1,436
Who's Online?
|
This will open a dialog window so that a user can browse to a specific folder.
|
Submitted By: Jayman
|
|
Rating:

|
|
Views: 24,924 |
Language: VB.NET
|
|
Last Modified: August 16, 2006 |
Snippet
' 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
Copy & Paste
|
|
|
Reference Sheets
Bye Bye Ads
Free DIC T-Shirt
Related Sites
Monthly Drawing
Partners
Top Contributors
Top 10 Kudos This Month
|