Skip to content

Enable control of One form From other form

ishika

Asked Jun 26, 2009, 2:53 AM EDT1 answer
Share
LinkedInX
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 Chakraborty
    0
    Can you explain the scenario bit more?
    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; }
    0