Articles in this section
Category / Section

What is the WinForms FolderBrowser Flags?

1 min read

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)
Please sign in to leave a comment
Access denied
Access denied