access the toolstripmenuItem of MDI form from child form
-
How do i disable the a toolstripmenuItem of menustrip in an MDI form from the child form. or can i access the toolstripmenuItem of MDI form from child form saying some thing like this.MdiParent.MytoolstripmenuItem?? well i dont to pass the MDI form instance to every child form, just to disable some toolstripmenuItems Any help is appreciated red yojimbo
-
How do i disable the a toolstripmenuItem of menustrip in an MDI form from the child form. or can i access the toolstripmenuItem of MDI form from child form saying some thing like this.MdiParent.MytoolstripmenuItem?? well i dont to pass the MDI form instance to every child form, just to disable some toolstripmenuItems Any help is appreciated red yojimbo
Assuming your MDI form is named MdiForm and the ToolStripMenuItem is accessible via a public property named MytoolstripmenuItem the following should work:
((MdiForm) this.MdiParent).MytoolstripmenuItem
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
Assuming your MDI form is named MdiForm and the ToolStripMenuItem is accessible via a public property named MytoolstripmenuItem the following should work:
((MdiForm) this.MdiParent).MytoolstripmenuItem
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook