J
John J. Hughes II
Could someone explain how to merge the form menu with the mdi container
window. The menu strip items on the form window merge but I either end up
with a blank blue menu on the form or top list of items that don't do
anything.
MDI Container.IsMdiContainer = true
MenuStrip.AllowMerge = true
/// First menu items
this.miFile.MergeAction = System.Windows.Forms.MergeAction.Insert;
this.miFile.MergeIndex = 1;
this.miFile.Name = "miFile";
this.miFile.Size = new System.Drawing.Size(35, 20);
this.miFile.Text = "&File";
/// On the sub form
this.miFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[]
{
this.toolStripSeparator1,
this.miClose});
this.miFile.MergeAction = System.Windows.Forms.MergeAction.MatchOnly;
this.miFile.MergeIndex = 1;
this.miFile.Name = "miFile";
this.miFile.Size = new System.Drawing.Size(35, 20);
this.miFile.Text = "&File";
Regards,
John
window. The menu strip items on the form window merge but I either end up
with a blank blue menu on the form or top list of items that don't do
anything.
MDI Container.IsMdiContainer = true
MenuStrip.AllowMerge = true
/// First menu items
this.miFile.MergeAction = System.Windows.Forms.MergeAction.Insert;
this.miFile.MergeIndex = 1;
this.miFile.Name = "miFile";
this.miFile.Size = new System.Drawing.Size(35, 20);
this.miFile.Text = "&File";
/// On the sub form
this.miFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[]
{
this.toolStripSeparator1,
this.miClose});
this.miFile.MergeAction = System.Windows.Forms.MergeAction.MatchOnly;
this.miFile.MergeIndex = 1;
this.miFile.Name = "miFile";
this.miFile.Size = new System.Drawing.Size(35, 20);
this.miFile.Text = "&File";
Regards,
John