2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
The FolderBrowser component provides a convenient and easy to use object-oriented wrapper for the Win32 Shell Folder Browser API that helps in accessing the system folders. The following properties are used to set the location of the FolderBrowser control.
You can set the desired location of the FolderBrowser Dialog points. The StartLocation property provides various options to specify the location of the root folder from where the browsing is to be started. The custom start location of the FolderBrowser can be set by using the property, CustomStartLocation. The following code example demonstrates the same. C# //Sets the custom start location for showing the dialog. folderBrowser1.CustomStartLocation = textBox1.Text; //Sets the selected location for showing the dialog folderBrowser1.SelectLocation = textBox1.Text; // Sets the start location for the folder browser dialog. folderBrowser1.StartLocation = FolderBrowserFolder.MyDocuments; //Retrieves the location of the selected folder. textBox1.Text = folderBrowser1.DirectoryPath; VB 'Sets the custom start location for showing the dialog. folderBrowser1.CustomStartLocation = textBox1.Text 'Sets the selected location for showing the dialog. folderBrowser1.SelectLocation = textBox1.Text 'Sets the start location for the folder browser dialog. folderBrowser1.StartLocation = FolderBrowserFolder.MyDocuments 'Retrieves the location of the selected folder. textBox1.Text = folderBrowser1.DirectoryPath The screenshot displays the Folder Browser. Figure 1: Folder browser dialog box Sample Link: http://www.syncfusion.com/downloads/support/directtrac/136531/FolderBrowser-488198065.zip
|
2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.