CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: MDI Forms

  1. #1
    Join Date
    Aug 2000
    Posts
    265

    MDI Forms

    I'm trying to disable a menu item when one of my children forms is selected. Everything I try seems to work for all forms within the MDI parent. How can I selectively work with a child?


  2. #2
    Join Date
    Aug 2000
    Posts
    265

    Re: MDI Forms

    I figured it out myself.

    It requires that I build a separate menu for each form.


  3. #3
    Join Date
    Feb 2001
    Location
    Germany
    Posts
    23

    Re: MDI Forms


    Hi,

    I hope I understood your problem and this solution fits:

    Within my programme I have a parent called frmMain and MDIs called MDITable and MDIGraph and they use different menus. I disable menus when a MDI is activated:

    public sub Form_Activate()
    frmMain.menu_item1.Enabled = FALSE;
    frmMain.menu_item2.Enabled = FALSE;
    end sub

    and when the other MDIs are activated, I enabled those menus again.

    mabrin


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured