Skip to content

Menu Items (enable & disable) with parent and child form

Kimberly

Asked May 29, 2006, 11:50 PM EDT1 answer
Share
LinkedInX
Hey, i'm new here and i'm in seperate NEED of help. How do i allow users to only open the same child form only once in a menu item? meaning that if the user already has opened the child form, the user cannot re-open the same child form until the user closes the already opened child form? Eg: once ChildFormA is opened, i have to disable the menu item till ChildFormA is close than enabled the menu item again. Please help me. I'm really stuck. Thank you SA

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    use the following:

    on your child form 'load' event, use

    frmMain.MenuItemToolStripMenuItem.Enabled = False

    and child form 'formclosed' event use

    frmMain.MenuItemToolStripMenuItem.Enabled = True

    0