"Melisa" <Melisa@discussions.microsoft.com> schrieb:
> 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
///

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
GrkEngineer - 20 Apr 2005 01:01 GMT
When I try this in C++/CLI, I receive an error stating that MainForm is an
undefined type. Please help.
Nicholas Nezis
> "Melisa" <Melisa@discussions.microsoft.com> schrieb:
> > How can I enable/disable Main Menu Item on MDI Parent Form
[quoted text clipped - 3 lines]
> DirectCast(Me.MdiParent, MainForm).MainMenu1.MenuItems(18).Enabled = False
> ///