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
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button28_Click(object sender, System.EventArgs e) { // Count the number of disabled groups and display the result. int totalDisabledGroups = 0; foreach(UltraExplorerBarGroup group in this.ultraExplorerBar1.Groups) { if (group.Enabled == false) totalDisabledGroups++; } Debug.WriteLine("The total number of disable Groups is: " + totalDisabledGroups.ToString()); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2