Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar
Private Sub ultraExplorerBar1_GroupEnteringEditMode(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinExplorerBar.CancelableGroupEventArgs) Handles ultraExplorerBar1.GroupEnteringEditMode
' Don't allow the group with key 'Options' to be edited if it contains any items.
If (e.Group.Key = "Options" AndAlso e.Group.Items.Count > 0) Then
e.Cancel = True
End If
End Sub