)
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 place the controls at the right side of the WinForms StatusBarAdv?

Platform: WinForms |
Control: StatusBarAdv |
Published Date: October 9, 2015 |
Last Revised Date: January 27, 2020

Place the control at any side

You can place the controls at the right side of the StatusBarAdv by following the steps:

1. Place the controls that need to be docked (ProgressBarAdv) and the StatusBarAdv inside a panel.

2. Set the docking specification for the ProgressBarAdv as right and StatusBarAdv as fill.

C#

//Adds the controls in panel.
this.panel1.Controls.Add(this.statusBarAdv1);
this.panel1.Controls.Add(this.progressBarAdv1);
//Docks the StatusBarAdv panel.
this.statusBarAdv1.Dock = System.Windows.Forms.DockStyle.Fill;
//Docks the ProgressBarAdv at the right side.
this.progressBarAdv1.Dock = System.Windows.Forms.DockStyle.Right;

VB

'Adds the controls in panel.
Me.panel1.Controls.Add(Me.statusBarAdv1)
Me.panel1.Controls.Add(Me.progressBarAdv1)
'Docks the StatusBarAdv panel.
Me.statusBarAdv1.Dock = System.Windows.Forms.DockStyle.Fill
'Docks the ProgressBarAdv at the right side.
Me.progressBarAdv1.Dock = System.Windows.Forms.DockStyle.Right

 

Show the StatusBarAdv and ProgressBarAdv placed at bottom

Figure 1: StatusBarAdv and ProgressBarAdv placed at bottom

Samples:

C#: StatusBarAdv_ProgressBar_C#

VB: StatusBarAdv_ProgressBar_VB

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