[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 173
  • Last Modified:

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
0
JRockFL
Asked:
JRockFL
1 Solution
 
Erick37Commented:
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now