Call Parent Form's Menu Click Event

I have a windows application - VS2003 - VB.net

On frmMain, I have a tabcontrol. I also have a menu on frmMain. On the tabcontrol, I have a user control. And from the user control, in the code behind, I want to call one of the frmMain menus click event.

I assume it is something like:

Me.ParentForm.Menu...........?

Can anyone help with this?
Gary2397Asked:
Who is Participating?
 
GranModCommented:
Closed, 500 points refunded.

GranMod
The Experts Exchange
Community Support Moderator of all Ages
0
 
Fahad MukhtarDistinguished EngineerCommented:
(Ctype(Me.ParentForm,frmMain))..Menu...........
0
 
maidinhtaiCommented:
frmMain.Menu1.PerformClick()
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
Gary2397Author Commented:
Is it possible to call a parent forms menu click event from a child form or user control.
0
 
Gary2397Author Commented:
Here is the code:

Me.ParentForm.Menu.MenuItems(Index).MenuItems(Index).MenuItems(Index).PerformClick()
0
 
Gary2397Author Commented:
Since maidinhtai almost had it, i would like to give the points to you. Copy the above code, in a new post, so I can accept the answer. Thanks
0
 
Gary2397Author Commented:
I am going to request that this question be closed. Any objections?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.