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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hector Hugo Alpizar CesenaRank #5,573 · 294 reputationPosted Apr 30, 2010, 3:44 PM EDT
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
Hector Hugo Alpizar CesenaRank #5,573 · 294 reputationPosted May 5, 2010, 6:25 AM EDT
GustavoRank #1,990 · 732 reputationPosted May 5, 2010, 6:27 AM EDT
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