Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button17_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button17.Click ' Add some Groups and Items to the control. Turn off drawing while we do so. Me.ultraExplorerBar1.BeginUpdate() Dim i As Integer For i = 0 To 4 Dim group As UltraExplorerBarGroup = Me.ultraExplorerBar1.Groups.Add() group.Text = "Group " + i.ToString() Dim j As Integer For j = 0 To 4 Dim item As UltraExplorerBarItem = group.Items.Add() item.Text = "Group " + i.ToString() + " - Item " + j.ToString() item.ToolTipText = item.Text Next Next ' Turn drawing back on. Me.ultraExplorerBar1.EndUpdate()
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button17_Click(object sender, System.EventArgs e) { // Add some Groups and Items to the control. Turn off drawing while we do so. this.ultraExplorerBar1.BeginUpdate(); for(int i = 0; i < 5; i++) { UltraExplorerBarGroup group = this.ultraExplorerBar1.Groups.Add(); group.Text = "Group " + i.ToString(); for (int j = 0; j < 5; j++) { UltraExplorerBarItem item = group.Items.Add(); item.Text = "Group " + i.ToString() + " - Item " + j.ToString(); item.ToolTipText = item.Text; } } // Turn drawing back on. this.ultraExplorerBar1.EndUpdate(); }
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