BrowseForFolder

I'm trying to use this BrowseForFolder class i have seen in a couple code samples online. I am getting a lot of blue squiggly lines.

Inherits System.Windows.Forms.Design.FolderNameEditor (Not defined)

Windows.Forms.Design.FolderNameEditor (Not a member of design)

I'm working on some code that resizes images and I am just trying to specify a folder.

Private Sub btnInput_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnInput.Click
        Dim fbFF As New BrowseForFolder
        fbFF.Description = "Select the folder containing the images to be resized (input folder):"
        If fbFF.ShowDialog() = DialogResult.OK Then
            txtInput.Text = fbFF.Path
        End If
    End Sub

Here is a link to where I got the code
http://www.dotnetforums.com/attachment.php?attachmentid=1
LVL 8
JRockFLAsked:
Who is Participating?
 
Erick37Connect With a Mentor Commented:
You could just use the built-in folder browser component: FolderBrowserDialog

If FolderBrowserDialog1.ShowDialog = DialogResult.OK Then
    MsgBox(FolderBrowserDialog1.SelectedPath)
End If
0
 
JRockFLAuthor Commented:
Perfect, thats what I needed
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.