Articles in this section
Category / Section

How to customize the appearance of WinForms StatusBarAdvPanel?

1 min read

Appearance of StatusBarAdvPanel

Office2013 StatusBar like tooltip appearance can be achieved by using the PopUpControlContainer and StatusBarEx.

C#

private void statusBarAdvPanel3_MouseEnter(object sender, EventArgs e)
{
    this.statusBarAdvPanel3.ForeColor = ColorTranslator.FromHtml("#4393cf");
    // To show the Popup control for specified location.
    this.popupControlContainer1.ShowPopup(new Point(Cursor.Position.X - this.popupControlContainer1.Width / 2, Cursor.Position.Y - this.popupControlContainer1.Height - 2));
}
 
private void statusBarAdvPanel3_MouseLeave(object sender, EventArgs e)
{
    this.statusBarAdvPanel3.ForeColor = Color.DimGray;
    //To hide the Popup window
    this.popupControlContainer1.HidePopup();
}

 

VB

Private Sub statusBarAdvPanel3_MouseEnter(ByVal sender As Object, ByVal e As EventArgs) Handles statusBarAdvPanel3.MouseEnter
    Me.statusBarAdvPanel3.ForeColor = ColorTranslator.FromHtml("#4393cf")
    ' To show the Popup control for specified location.
    Me.popupControlContainer1.ShowPopup(New Point(Cursor.Position.X - Me.popupControlContainer1.Width \ 2, Cursor.Position.Y - Me.popupControlContainer1.Height - 2))
End Sub
 
Private Sub statusBarAdvPanel3_MouseLeave(ByVal sender As Object, ByVal e As EventArgs) Handles statusBarAdvPanel3.MouseLeave
    Me.statusBarAdvPanel3.ForeColor = Color.DimGray
    'To hide the Popup window
    Me.popupControlContainer1.HidePopup()
End Sub

 

PopupControlContainer shows on mouse hover of the StatusBar items

Figure 1. PopupControlContainer shows on mouse hover of the StatusBar items.

Samples:

C#: StatusBarAdv_Office2013_C#

VB: StatusBarAdv_Office2013_VB

Reference link: https://help.syncfusion.com/windowsforms/statusbaradvpanel/appearance-settings

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied