I have a menu system on a form and now I need to create a new form, what is the best way to keep the menus the same on all forms? Can you create them seperatley and then show them on any form you like???
If you open notepad and drag the Form that contains the menu options that you want to replicate into notepad from windows explorer you will see the code for the menus. ie:
Begin VB.Menu mnuFile
Caption = "&File"
Begin VB.Menu mnuLocation
Caption = "Change &Location"
End
Begin VB.Menu mnuFileClose
Caption = "Close"
End
End
if you copy this, clear notepad and drag the form you wnat to add the menu to, then paste and save it when you open the form it will have the menu options
What I do is make the form with the menus (or whatever) and I save it as a template. That way I can just add it to the project and go from there.
Dragnut
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.