FolderBrowserDialog

Getox

Centurion
Joined
Jul 8, 2004
Messages
122
How can i get the FolderBrowserDialog to show up?

ok i got it to show up
but how do i get it to set the text is the text box to the folder?
Code:
       Dim fbd As FolderBrowserDialog
        Me.Folderb.ShowDialog()
        savelocation.Text = fbd.SelectedPath
savelocation.Text = fbd.SelectedPath - makes it crash..
anyhelp would be great.
 
Last edited:
What is Folderb? If that is the FolderBrowseDialog why are you declaring another variable of the same type called fbd? The reason you are getting the crash is that you are never instantiating fbd but are trying to access it.

You probably need code more like
Visual Basic:
Me.Folderb.ShowDialog()
savelocation.Text = Folderb.SelectedPath
 
Back
Top