Version

Set the Panel Style to ControlContainer

The WinStatusBar™ mimics the behavior of the status bar in a web browser. When a panel is added to the UltraStatusBar with the ControlContainer style, almost any control can be incorporated within the status bar.

Setting up ControlContainer Style Panel at Design-Time

  1. Add an UltraStatusBar and a TrackBar to your Windows Form. Select the UltraStatusBar.

  2. In the Property Pages scroll down to the Panels Property.

  3. Click the ellipsis to bring up the Panels Collection.

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

  5. Scroll the properties until you come to the Style property. Set the Style property equal to ControlContainer.

  6. Go to the Control property and click on the drop-down arrow. All instantiated controls on the form that can validly be added will be included within the drop-down. Select the "TrackBar1" control.

  7. Click OK to close the window and you will see your panel with the TrackBar in it added to the status bar.

Setting up ControlContainer Style Panel at Run-Time

In Visual Basic:

Imports Infragistics.Win.UltraWinStatusBar
...
Private Sub Set_the_Panel_Style_to_ControlContainer_Load( _
  ByVal sender As System.Object, _
  ByVal e As System.EventArgs) Handles MyBase.Load
	' Create an instance of a TrackBar
	Dim myTrackBar As New TrackBar()
	Me.Controls.Add(myTrackBar)
	' Create new panel
	Dim myPanel As New UltraStatusPanel()
	' Set the style for the panel
	myPanel.Style = PanelStyle.ControlContainer
	' Assign the desired control to the Control property
	myPanel.Control = myTrackBar
	' 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_ControlContainer_Load(object sender, EventArgs e)
{
	// Create an instance of a TrackBar
	TrackBar myTrackBar = new TrackBar();
	this.Controls.Add(myTrackBar);
	// Create new panel
	UltraStatusPanel myPanel = new UltraStatusPanel();
	// Set the style for the panel
	myPanel.Style = PanelStyle.ControlContainer;
	// Add the panel to the element
	myPanel.Control = myTrackBar;
	// Assign the desired control to the Control property
	this.ultraStatusBar1.Panels.Add(myPanel);
}
shows ultrastatusbar with a controlcontainer panel style that was setup at run time