"Kenny" <(E-Mail Removed)> schrieb
> 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?
In the menuitem's click event, set it's enabled property to false (that's
what you probably aready know). After creating the instance of the child
within the MDI container, use the Addhandler statement to handle the closed
event of the child. In the event handler, enable the menuitem.
--
Armin
How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html