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
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.
Niradhip ChakrabortyPosted Jun 26, 2009, 8:18 AM
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; }