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

fugio huynhPosted Mar 21, 2013, 1:21 AM
Shankar MPosted Feb 18, 2013, 12:14 AM
// The Form.MainMenuStrip property determines the merge target.
this.MainMenuStrip = MnuStrip;
Where MnuStrip is the Object of MenuStrip Class.
Regards,
Shankar
Shankar MPosted Nov 30, 2012, 11:43 PM
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
Prabhu RajaPosted Nov 30, 2012, 1:48 AM