Access MDI Form Menu Item from a child dll Form

  • Thread starter Thread starter PK
  • Start date Start date
P

PK

Hi,
I've a MDI form and a child form that comes from a dll. Everything works
fine until I had to uncheck or check a menu item in the MDI form based on
the changes in the child form. How to acheive this ? How can a child form
(that is in dll) access a menuitem in the main form ?
Pl. help.
 
I'm aware of this solution. But the problem here is; the child form is not
in the same project. My child form is in a dll, therefore I can't cast it. I
will not know the parent, since the child form is in a DLL.
 
Have you tried using the Menu property of the parent Form object
("this.MdiParent.Menu" from within the child form code) to access its active
MainMenu (assuming it has one)?
 
Back
Top