Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar
Private Sub Button84_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button84.Click
' Insert groups into the Groups collection using the different overloads.
' Groups.Insert(int index)
Dim group As UltraExplorerBarGroup = Me.ultraExplorerBar1.Groups.Insert(0)
group.Text = "FirstGroupAdded"
' Groups.Insert(int index, UltraExplorerBarGroup group)
group = New UltraExplorerBarGroup("SecondGroupKey")
group.Text = "SecondGroupAdded"
Me.ultraExplorerBar1.Groups.Insert(0, group)
' Groups.Insert(string Key, string Text)
group = Me.ultraExplorerBar1.Groups.Insert(0, "ThirdGroupKey", "ThirdGroup")
' Groups.Insert(string Key)
group = Me.ultraExplorerBar1.Groups.Insert(0, "FourthGroupKey")
End Sub