I'm trying to add menu to my main form and am having no luck! Seems like I'm missing a step, but what?
int catId = mainMenuManager.Categories.Add("xxxx");
ParentBarItem menuBar = new ParentBarItem();
menuBar.CategoryIndex = catId;
menuBar.ID = "zzzz";
menuBar.Text = "test";
RPRamesh Praveen Syncfusion Team June 16, 2003 06:23 AM
A ParentBarItem represents a dropdown submenu (please refer to our User's Guide in Tools\Docs\User's Guide folder) which itself needs to be added to a Bar instance. So, you will have to also do this:
Bar mainMenuBar = new Bar();
mainMenuBar.BarStyle = BarStyle.IsMainMenu|...;
mainMenuBar.Text = '...";
// This will add an empty main menu bar to your form
// Then create a new instance of a ParentBarItem as in the code above and add it to your mainMenuBar.