FolderBrowserDialog.SelectedPath : FolderBrowserDialog « System.Windows.Forms « VB.Net by API






FolderBrowserDialog.SelectedPath

  
Imports System
Imports System.Data
Imports System.Windows.Forms
Imports System.Drawing

Public Class MainClass
    
    Shared Sub Main()
        Dim dlgFolder As System.Windows.Forms.FolderBrowserDialog
        dlgFolder = New System.Windows.Forms.FolderBrowserDialog


        dlgFolder.SelectedPath = "C:\"

        If dlgFolder.ShowDialog() = DialogResult.OK Then
            Console.WriteLine( dlgFolder.SelectedPath)
        End If

    End Sub
End Class

   
    
  








Related examples in the same category

1.FolderBrowserDialog.Description
2.FolderBrowserDialog.RootFolder
3.FolderBrowserDialog.ShowDialog()
4.FolderBrowserDialog.ShowNewFolderButton