Click to See Complete Forum and Search --> : MDI Forms


comart
March 20th, 2001, 01:49 PM
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?

comart
March 20th, 2001, 02:30 PM
I figured it out myself.

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

mabrin
March 21st, 2001, 03:17 AM
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