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
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button84_Click(object sender, System.EventArgs e) { // Insert groups into the Groups collection using the different overloads. // Groups.Insert(int index) UltraExplorerBarGroup group = this.ultraExplorerBar1.Groups.Insert(0); group.Text = "FirstGroupAdded"; // Groups.Insert(int index, UltraExplorerBarGroup group) group = new UltraExplorerBarGroup("SecondGroupKey"); group.Text = "SecondGroupAdded"; this.ultraExplorerBar1.Groups.Insert(0, group); // Groups.Insert(string Key, string Text) group = this.ultraExplorerBar1.Groups.Insert(0, "ThirdGroupKey", "ThirdGroup"); // Groups.Insert(string Key) group = this.ultraExplorerBar1.Groups.Insert(0, "FourthGroupKey"); }