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?
Printable View
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?
I figured it out myself.
It requires that I build a separate menu for each form.
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