Hello:
I use to have it working, but lost the code. It might be something in VS 2010.
How do I make my MDIChild MenuStrip be shown on the MDIParent MenuStrip?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Hector Hugo Alpizar CesenaPosted Apr 30, 2010, 7:44 PM
In everychild form you have to set your modifier menu strips to public.
check img01.jpg inside the rar sample
Then every time you add a child form you have to add this code.
private void addChildToolStripMenuItem_Click(object sender, EventArgs e)
{
ChildForm child1 = new ChildForm(); //create the instance
child1.MdiParent = this; // Set the parent of the child form
child1.Show(); // show it
this.menuStrip1.Items.AddRange(child1.menuStrip1.Items); //Then the parent form has to add in its menu strip the item menu collection from the child form
}
this - The parent or main window form container
Check this sample in rar file
any questions holla at me through my account
GustavoPosted May 5, 2010, 10:27 AM
What you recomended is what I had. I do not know what was wrong. I had to re-do the whole form and then it worked.
I will give you the credit.
Thanks
Hector Hugo Alpizar CesenaPosted May 5, 2010, 10:25 AM