Promote Your Blog

Friday, March 2, 2012

How To Use FolderBrowseDialog in

Sometimes, your VB app need to get a selected folder for further operations. Say, a folder where to install your app. In this case and many alike situations, you can make use of FolderBrowseDialog.
Following code snippet shows how to use FolderBrowseDialog:

Imports System.Windows.Forms

Imports System.IO

Dim folderDlg As New FolderBrowserDialog

folderDlg.ShowNewFolderButton = False

folderDlg.SelectedPath = "C:\My Path"

If (folderDlg.ShowDialog() = DialogResult.OK) Then


End If

No comments:

Post a Comment