[RESOLVED] MDI Child Control Parent Menu Bar.
I am having a problem referencing the MDI Parent from my child to tell a Menu Item to Disable/Enable itself. I have a program where the childs need to do this. Hopefully someone has a good workaround.
BTW I'm getting a only one MDI parent error when I try calling it by the Parents name.
Re: MDI Child Control Parent Menu Bar.
Could you post some code? I think I have experienced doing such and encountered no problems...
Re: MDI Child Control Parent Menu Bar.
Oh it would be something simple like this
the parent is called frmMain (Generic eh?)
I have a menu item as such
frmMain.MenuItem.Enabled = True
and it fires an error on frmMain because it says only one MDI Parent form allowed on the form. Is there some property on this page I need to enable?
I can only make it work by calling it with Me.... on the parent form.
Seems like a few querks using MDI forms.
Re: MDI Child Control Parent Menu Bar.
Strange, just checked it and it really errors out and I dont know why... What you may do is to make a Procedure in your MDIForm then call it with your child forms and passing some parameter that would determine the menu to be disabled...
Re: MDI Child Control Parent Menu Bar.
Call frmMain.EnableCloseWrk causes issues
only one MDI Form Allowed.
Re: MDI Child Control Parent Menu Bar.
Resolved as of this morning, something simple in my Sub Main module. Be sure if you have windows design your form that you use fMainForm instead of the actual name of the form.