Articles in this section

What is the WinForms FolderBrowser Flags?

Styles

Flags can be used to set various Styles for the FolderBrowser Dialog. Each Style has its own behaviour and these styles can be aded or removed to get the desired style for the FolderBrowser Dialog. Look at the given snippet to apply “RestrictToSubfolders” style and to remove the “ShowTextBox” style for the FolderBrowser Dialog.  

C#

this.folderBrowser1.Style &= ~FolderBrowserStyles.RestrictToSubfolders;
this.folderBrowser1.Style |= FolderBrowserStyles.ShowTextBox;

 

VB

Me.folderBrowser1.Style = Me.folderBrowser1.Style And Not FolderBrowserStyles.RestrictToSubfolders
Me.folderBrowser1.Style = Me.folderBrowser1.Style Or FolderBrowserStyles.ShowTextBox

 

Reference link: https://help.syncfusion.com/windowsforms/folder-browser/stylesettings

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied