MDIParent - Menu enable & disable

  • Thread starter Thread starter DNK
  • Start date Start date
D

DNK

I have an MDIParent and a menu item "Show Status".
By clicking on it, 'Show Status' Child Window has to be opened & Menu has to
be disabled.

by closing the Child menu has to be enabled.

How to achieve this.

Thanks
dnk.
 
You can put the code for disabling the menu item in the Form_Load event and
the code to enable the menu item in the Form_Closing event.

Me.Parent.menuShowStatus.Enabled = False, and
Me.Parent.menuShowStatus.Enabled = True respectively.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top