Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar
Dim WithEvents dialogResetButton As Button
Private Sub UltraExplorerBar1_NavigationOptionsDialogDisplaying(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinExplorerBar.CancelableNavigationOptionsDialogDisplayingEventArgs) Handles UltraExplorerBar1.NavigationOptionsDialogDisplaying
' To prevent the NavigationPaneOptionsDialog from displaying, uncomment the following line.
'e.Cancel = true
' If we haven't cancelled the dialog, enable the dialog's Reset button and listen to its Click event.
If e.Cancel = False Then
e.Dialog.ResetButton.Visible = True
Me.dialogResetButton = e.Dialog.ResetButton
Else
' Since we have cancelled the display of the built-in NavigationPaneOptionsDialog, display our
' own options dialog.
Dim myNavigationOptionsDialog As MyNavigationOptionsDialog = New MyNavigationOptionsDialog()
myNavigationOptionsDialog.ShowDialog(Me)
End If
End Sub
Private Sub MyResetButtonEventHandler(ByVal sender As Object, ByVal e As EventArgs) Handles dialogResetButton.Click
' Perform custom reset processing here.
End Sub
Public Class MyNavigationOptionsDialog
Inherits System.Windows.Forms.Form
End Class