Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

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?

       Dim fbd As FolderBrowserDialog
       Me.Folderb.ShowDialog()
       savelocation.Text = fbd.SelectedPath

savelocation.Text = fbd.SelectedPath - makes it crash..

anyhelp would be great.

Edited by Getox

Page Edit 2.0 Alpha 2 OUT NOW!

- Download Now -

  • Administrators
Posted

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

Me.Folderb.ShowDialog()
savelocation.Text = Folderb.SelectedPath

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...