Version

Set the Panel Style to Text

The Text panel is simply a panel on the WinStatusBar™ that acts as a standard label or static text area.

Setting up Text Style Panel at Design-Time

  1. Add a UltraStatusBar to your Windows Form

  2. In the Property Pages scroll down to the Panels Property. Click the ellipsis to bring up the Panels Collection.

  3. Click the "Add" button. This will add a new panel.

  4. Scroll the properties until you come to the Style property. Set the Style property equal to Text.

  5. Set the Text property equal to the value you want to display in this status bar panel.

  6. Click OK to close the window and you will see your panel added to the status bar.

Setting up Text Style Panel at Run-Time

In Visual Basic:

Imports Infragistics.Win.UltraWinStatusBar
...
Private Sub Set_the_Panel_Style_to_Text_Load(ByVal sender As System.Object, _
  ByVal e As System.EventArgs) Handles MyBase.Load
	' Create new panel
	Dim myPanel As New UltraStatusPanel()
	' Set the style for the panel
	myPanel.Style = PanelStyle.Text
	' Set the default text
	myPanel.Text = "This is My UltraStatusBar Text Panel"
	' Add the panel to the element
	Me.UltraStatusBar1.Panels.Add(myPanel)
End Sub

In C#:

using Infragistics.Win.UltraWinStatusBar;
...
private void Set_the_Panel_Style_to_Text_Load(object sender, EventArgs e)
{
	// Create new panel
	UltraStatusPanel myPanel = new UltraStatusPanel();
	// Set the style for the panel
	myPanel.Style = PanelStyle.Text;
	// Set the default text
	myPanel.Text = "This is My UltraStatusBar Text Panel";
	// Add the panel to the element
	this.ultraStatusBar1.Panels.Add(myPanel);
}