Toolbar location


https://www.nevron.com/Forum/Topic8540.aspx
Print Topic | Close Window

By Billy Barnes - 10 Years Ago
I have the same problem.
I have added a toolbar to the manager.
Now I want the toolbar to be the leftmost toolbar.
I only have my custom toolbar and the Standard toolbar.
No matter what I have tried, the Standard always is leftmost.
By Nevron Support - 10 Years Ago
Hi Billy,

The order of the toolbars on same row depends of their order in NCommandBarsManager.Toolbars collection.
To set a toolbar to be on the leftmost position it should be at the first place in toolbars collection.
By Billy Barnes - 10 Years Ago
I have tried that with no results.

manager.Toolbars.SetIndex(manager.Toolbars["UI Editor"], 0);
By Nevron Support - 10 Years Ago
You need to use Remove/Add methods instead