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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Toolbar location

Thread ID:





44666 May 31,2006 01:23 PM UTC May 31,2006 02:25 PM UTC WinForms 3
Tags: Tools
Radoslaw Samlik
Asked On May 31, 2006 01:23 PM UTC

Hi, I use the mainFrameBarManager to create main menu and two toolbars.The toolbars are placed one next to another. I need to set the position of the second(left hand side) toolbar near the right edge of the form. Is there a way to set the bar position praogrammatically?I was playing with setting it''s .Left property on form''s resize, but the toolbar dissapeared then. Regards, Radoslaw

Radoslaw Samlik
Replied On May 31, 2006 01:46 PM UTC

Well, I have found it myself :) Here is the solution: this.mainFrameBarManager.GetCommandBarManager().LockBars(); this.mainFrameBarManager.GetBarControl(this.toolbarEnterProdID).Left = this.Right - this.mainFrameBarManager.GetBarControl(this.toolbarEnterProdID).Width; this.mainFrameBarManager.GetCommandBarManager().UnLockBars();

Radoslaw Samlik
Replied On May 31, 2006 02:04 PM UTC

Hmm... My mistake, it was something else - still does not work :/ Any ideas? Help appreciated :)

Mano J [Syncfusion]
Replied On May 31, 2006 02:25 PM UTC

Hi Radoslaw, The value of the Right property is equal to the sum of the Left property value and the Width property value. Please try using the form''s width property alone instead of Right propert as shown below this.mainFrameBarManager1.GetBarControl(this.toolbarEnterProdID).Left = this.Width - this.mainFrameBarManager1.GetBarControl(this.toolbarEnterProdID).Width; Please let me know if this helps you. Regards, Mano


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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