Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Menus & forms

Status
Not open for further replies.

vlitim

Programmer
Sep 2, 2000
393
GB
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???

Cheers
Tim
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top