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.
Unfortunately, activation email could not send to your email. Please try again.

Toolbar location

Thread ID:

Created:

Updated:

Platform:

Replies:

44666 May 31,2006 09:23 AM May 31,2006 10:25 AM Windows Forms 3
loading
Tags: Tools
Radoslaw Samlik
Asked On May 31, 2006 09:23 AM

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 09:46 AM

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 10:04 AM

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

Mano J [Syncfusion]
Replied On May 31, 2006 10:25 AM

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

CONFIRMATION

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.

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.

;