When I try to get to the form controls to get the bar items the bi are layered into the CommandDockBarExt. Is there anyway to get to the bar item generically?
foreach(Control con in container.Controls)
if (con.GetType() == typeof(Syncfusion.Windows.Forms.Tools.XPMenus.CommandDockBarExt))
ctl = (CommandDockBarExt)con;
//Can't get the controllerEXT from the ctl.
//Thus unable to get to the baritems. There has to be a way to get to this...
// foreach(BarItem bi in ctl.controllerExt.Manager.Items)
//// if( == name)
//// returnControl = bi;
returnControl = con;
//if found stop searching
RPRamesh Praveen Syncfusion Team July 22, 2003 02:13 PM
The CommandDockBarExt controls should have a CommandBarExt control which in turn will include a Bar property that will provide you the underlying Bar. The Bar.Items will provide you the list of BarItems. Of course, there will be some casting necessary in the process.