Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar
Private Sub Button28_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button28.Click
' Count the number of disabled groups and display the result.
Dim totalDisabledGroups As Integer = 0
Dim group As UltraExplorerBarGroup
For Each group In Me.ultraExplorerBar1.Groups
If (group.Enabled = False) Then
totalDisabledGroups += 1
End If
Next
Debug.WriteLine("The total number of disable Groups is: " + totalDisabledGroups.ToString())
End Sub