ControlBar docking with toolbars

Hi,

We want to use the ControlBar control as a task pane much like in Excel, docked to the right of the form.

However, since we are using a ToolStripContainer (the standard WinForms one) to contain the ToolStripEx controls, we can not get the ControlBar to sit underneath the toolbars. Instead it takes up all the space on the right up to the main menu.

I suspect since the main menu is managed by the same manager as the ControlBar, it knows the ControlBar should sit underneath it whereas it just considers the ToolStripContainer as another panel that fills the space to the right.

Since I can't embed the ControlBar within a sub UserControl (like I can with the DockingManager) can you suggest any way we can get our ControlBar task pane to sit underneath any toolbars we have? Otherwise, it just looks strange. A screen shot is attached.

Thanks,

Jas.

P.S. We did originally have our app using the BarManager add toolbars but we found the controls too basic - can we add the standard controls such as ToolStripTextBox to a BarManager's toolbar?

taskpane problem.zip

2 Replies

GR Golda Rebecal Syncfusion Team March 27, 2007 06:41 AM UTC

Hi Jas,

You can use the MainFrameBarManager's Detached CommandBar to host any control and you can use the ControlBar so that it will be placed underneath the CommandBar.

Please have a look at the attached sample and let me know if this meets your requirement.

Thanks for your interest in Syncfusion products.

ControlBar

Best Regards,
Golda


JS James Sandys-Lumsdaine April 4, 2007 07:45 AM UTC

Thanks for the reply and example - I shall see if that helps out my problem.

Loader.
Up arrow icon