private void Form1_Load(object sender, System.EventArgs e)
        {
            barManager1.ForceInitialize();

            Bar menu = new Bar(barManager1);

            menu.Text      = "Main Menu";
            menu.DockStyle = BarDockStyle.Top;
            barManager1.Bars.Add(menu);
            barManager1.MainMenu = menu;

            BarSubItem file = new BarSubItem(barManager1, "&File");

            barManager1.Items.Add(file);
            menu.ItemLinks.Add(file);

            BarButtonItem exit = new BarButtonItem(barManager1, "E&xit");

            exit.ItemClick += new ItemClickEventHandler(exit_ItemClick);
            barManager1.Items.Add(exit);
            file.ItemLinks.Add(exit);
        }
 private void Form1_Load(object sender, System.EventArgs e)
 {
     barManager1.ForceInitialize();
     FillItemTree();
 }