Access Parent Form's Menu 
Author Message
 Access Parent Form's Menu


> I have created a public sub on the parent form as follows:

>     Public Sub modMenu(ByVal item As String, ByVal enable
> As Boolean)
>         Select Case item
>             Case "mnuAddTorqueInfo"
>                 If enable = False Then
>                     mnuAddTorqueInfo.Enabled = False
>                 Else
>                     mnuAddTorqueInfo.Enabled = True
>                 End If
>         End Select
>     End Sub

> I wish to call this sub from the child form to change menu
> item properties, however, when I try to access the sub
> from the child form, it does not show up:

> me.ParentForm....

> Also, from the child form, I am unable to create a
> ParentForm object.  I have set the IsMDIContainer on the
> parent to true, and set it as the parent form when I
> created the child.

> Any suggestions on why I am having difficulty in calling
> the sub?

> Thx

Wed, 11 May 2005 23:25:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Help on MDI Parent form's menu

2. Find out a sub-menu's parent menu

3. Form in a Parent Form's Frame - Is it possible

4. Manipulate 'parent' forms

5. MDI parent forms and 'fixed borderstyle'

6. Accessing Objects on a Mdi Parent form from a Mdi Child form

7. Menus and Sending Events to Parent Form?

8. Passing MDI Parents menu click events to child forms

9. How do I enable and disable menu items on the parent form

10. Linking Parent menus to specifc routines in child forms

11. MDI Menu with Child form Popup menu's

12. Enabling Parent Menu based on Child Menus


Powered by phpBB® Forum Software