setting the parent property from MDI child form in c#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I enable/disable Main Menu Item on MDI Parent Form
when a Child form is loaded?

Is it possible?

In one child form i the code below on the button click event.
The first line of code has error. I also dunno why may be it is not possible
to instantiate the parent form while it is active?

frmParent mdiParent=new frmParent();
mdiParent.mnuFileNew.Enabled=false;

Thanks.
 
Melisa said:
How can I enable/disable Main Menu Item on MDI Parent Form
when a Child form is loaded?

\\\
DirectCast(Me.MdiParent, MainForm).MainMenu1.MenuItems(18).Enabled = False
///
 
When I try this in C++/CLI, I receive an error stating that MainForm is an
undefined type. Please help.

Nicholas Nezis
 
Back
Top