To expand on what others have posted, add the menu calling code (e.g. define menu, do myshortcut.mpr, etc.) to the right-click event (or a method called from the right-click) in your first-level form subclass. That way all forms inheriting from that form will get the behavior.
A more generic (better, IMO) way would be to add a form-level property to hold the name of a menu file. Then you could add code to the appropriate method to launch the menu file spcified there. The code could check to make sure the property was populated and if not, do nothing.
HTH.
>I want to display a submenu, when I click on a form. I want to call this routine from all the forms of my project. How can I do that ?
>
>
>Please help.
>
>Thanx in advance
>
>
>Regards
>
>Ashish Patel
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao