I find some information in this pages, same as what I need, but could not clearly understand the solution. Is there any C# example for this Any help
Thanks
========
I have a main form (an mdi container) with a menu and the item "open".
When clicking "open" a child form appears. Now, i don't want that
several childforms are opened. So i want the "open" item to be
disabled when this child form is shown. When i close this child form
i want the "open" item in the menu to be enabled again so that i can
open the child form whenever i want. How can i do this Anyone an
idea
=========
How can execute the public method inside the MDIparent from the client form?
B. Wesley
Thanks
========
I have a main form (an mdi container) with a menu and the item "open".
When clicking "open" a child form appears. Now, i don't want that
several childforms are opened. So i want the "open" item to be
disabled when this child form is shown. When i close this child form
i want the "open" item in the menu to be enabled again so that i can
open the child form whenever i want. How can i do this Anyone an
idea
=========
========================
http://groups.google.com/group/microsoft.public.dotnet.languages.vb/browse_frm/thread/99d82bc37ea2dd51/fc927daff26f1e84#fc927daff26f1e84
directcast(sender, menuitem).enabled = false
'...
m_child = new form2
closed
> event of the child.
private sub ChildClosed( _
menuitemx.enabled = trueByVal sender As Object, ByVal e As System.EventArgs)
removehandler m_child.closed, addressof ChildClosed
m_child = nothing
end sub
========================
jalal khodabandeh
Great resource to me, and very helpful,
Thanks a lot,
AParker
MyMDIForm mdiform = ((MyMDIForm)this.MdiParent);
And then access your two public methods from the casted reference variable:
mdiform.MyPublicMethod1();
mdiform.MyPublicMethod2();
Regards,
-chris