Articles in this section
Category / Section

What is the FolderBrowserCallback event in WinForms FolderBrowser?

1 min read

FolderBrowserCallback event

The FolderBrowserCallback event is a validation event which is the functional equivalent of Win32 BrowseCallbackProc callback function. Using this event, you can get the events performed by the FolderBrowser Dialog and the selected directory path.


private void folderBrowser1_FolderBrowserCallback(object sender, Syncfusion.Windows.Forms.FolderBrowserCallbackEventArgs e)
    this.statusBar1.Text = String.Format("Event: {0}, Path: {1}", e.FolderBrowserMessage, e.Path);
    if (e.FolderBrowserMessage == FolderBrowserMessage.ValidateFailed)
       e.Dismiss = e.Path != "NONE";



Private Sub folderBrowser1_FolderBrowserCallback(ByVal sender As Object, ByVal e As Sy ncfusion.Windows.Forms.FolderBrowserCallbackEventArgs)
    Me.statusBar1.Text = String.Format("Event: {0}, Path: {1}", e.FolderBrowserMessage, e.Path)
    If e.FolderBrowserMessage = FolderBrowserMessage.ValidateFailed Then
       e.Dismiss = e.Path <> "NONE"
    End If
End Sub


Reference link:

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment