I have a issue calling a Child parent from the MDI window. I have MenuStrip control in the window. I call the child window in maximized mode. In such case, I have I have a ribbon like above the MenuStripcontrol. I have highlighted in the screenshot1
.How to remove this Icon with the Strip ??? So my Screen looks something like this with out scrollbars.

Kindly help me to solve this, Anyhelp appreciated.
Thanks,
Shankar


Prabhu RajaRank #861 · 2.6K reputationPosted Nov 29, 2012, 8:48 PM EST
Shankar MRank #874 · 2.5K reputationPosted Nov 30, 2012, 6:43 PM EST
I have attached the code here.
private void Form1_Load(object sender, EventArgs e)
{
this.IsMdiContainer = true;
MenuStrip MainMnu;
ToolStripPanel tspTop = new ToolStripPanel();
tspTop.Dock = DockStyle.Top;
ToolStrip tsTop = new ToolStrip();
tsTop.Items.Add("Fiche History");
tsTop.Items.Add("Product Code Display");
tsTop.Items.Add("Copy Production BOM Versions from SAP");
tsTop.Items.Add("Mass Fiche Deletions");
tspTop.Join(tsTop);
this.Controls.Add(tspTop);
MainMnu = new MenuStrip();
this.Controls.Add(MainMnu);
ToolStripMenuItem mnuItem = new ToolStripMenuItem("General Consultation");
mnuItem.DropDown.Items.Add("Fiche History",null,ChildClick);
mnuItem.DropDown.Items.Add("Stock Summary by LG Product and Selection Criter");
mnuItem.DropDown.Items.Add("Product Code Display");
mnuItem.DropDown.Items.Add("Copy Production BOM Versions from SAP");
MainMnu.Items.Add(mnuItem);
}
public void ChildClick(object sender, EventArgs e)
{
Form2 frmshow = new Form2();
frmshow.MdiParent = this;
frmshow.WindowState = FormWindowState.Maximized;
frmshow.Show();
}
Thanks,
Shankar
Shankar MRank #874 · 2.5K reputationPosted Feb 17, 2013, 7:14 PM EST
// The Form.MainMenuStrip property determines the merge target.
this.MainMenuStrip = MnuStrip;
Where MnuStrip is the Object of MenuStrip Class.
Regards,
Shankar
fugio huynh41 reputationPosted Mar 20, 2013, 9:21 PM EDT