)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize the appearance of WinForms StatusBarAdvPanel?

Platform: WinForms |
Control: StatusBarExt |
Published Date: November 20, 2015 |
Last Revised Date: January 27, 2020

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

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon