Articles in this section
Category / Section

How to place the controls at the right side of the WinForms StatusBarAdv?

1 min read

Place the control at any side

You can place the controls at the right side of the WinForms 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

 

Conclusion

I hope you enjoyed learning about how to place the controls at the right side of the WinForms StatusBarAdv.

You can refer to our WinForms StatusBar’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms StatusBar documentation to understand how to present and manipulate data. 

For current customers, you can check out our WinForms from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms StatusBarand other WinForms components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

 

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