Folder Browser Dialog: set selected folder : Dialog Folder Browser « GUI « VB.Net






Folder Browser Dialog: set selected folder

Folder Browser Dialog: set selected folder
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.Folder Browser Dialog: set DescriptionFolder Browser Dialog: set Description
2.Folder Browser Dialog: print Selected FolderFolder Browser Dialog: print Selected Folder