Enable control of One form From other form
how can i enable/ disable a control of MDIForm from its CHildForm, such as i want to disable MDIForm on New entry of MDIChild
thanks
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted Jun 26, 2009, 4:18 AM EDT
If you want to disable the menu bar from child form. Do it like below:
set the menu's modifier property to public to make it available to your child form.
private void button1_Click(object sender, EventArgs e) { ((Form1)(this.MdiParent)).menuStrip1.Enabled = false; }