Drag it onto the form from the toolbox:
Then to call it upwrite:
Code Snippet
FolderBrowserDialog1.showDialog()
and to see what the user selected:
Code Snippet
Me.text = FolderBrowserDialog1.SelectedPath
Don't forget to check the value of selectedPath because the user may cancel the selection, in which case it will be empty!
so
Code Snippet
If FolderBrowserDialog1.SelectedPath <> "" then
' Do something with it
end if