Imports Infragistics.Win.UltraWinStatusBar ... Private Sub Set_the_Panel_Style_to_Time_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load Me.UltraStatusBar1.Panels.Add("Time", PanelStyle.Time) End Sub
The Time panel is used to display the current time. The format of the time display is determined by the DateTimeFormat property of the Panel.
To add a panel and set its type to "Time" at run-time, use the following line of code:
In Visual Basic:
Imports Infragistics.Win.UltraWinStatusBar ... Private Sub Set_the_Panel_Style_to_Time_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load Me.UltraStatusBar1.Panels.Add("Time", PanelStyle.Time) End Sub
In C#:
using Infragistics.Win.UltraWinStatusBar; ... private void Set_the_Panel_Style_to_Time_Load(object sender, EventArgs e) { this.ultraStatusBar1.Panels.Add("Time", PanelStyle.Time); }