Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Menu Editing

Posted on 1998-11-12
3
Medium Priority
?
148 Views
Last Modified: 2010-04-30
Can I use a text editor for modifying the Menu instead of using the VB Menu Editor.  This way will could modify what is displayed more easily, MS VB editor is small, not tree graphical, and not sizeable...
0
Comment
Question by:optical
3 Comments
 
LVL 1

Expert Comment

by:hddp666
ID: 1444585
Open the VB form file (XXX.frm) using a text editor, and you can access the raw source code. Somewhere near the top of the file is the source code for the menu, "Begin VB.Menu . . . ." Editing the menu in this way is pretty simple, especially if there are already some menu items there to show you how the coding goes.

I have not seen a tree graphical menu editor, but such a program would be easy to write.
0
 

Accepted Solution

by:
technoteo earned 200 total points
ID: 1444586
Open the main form file from a text editor. You will find a structure like this :

Begin VB.Menu mnu_Test
      Caption         =   "&Test"
      Enabled         =   0   'False
      HelpContextID   =   20
      Begin VB.Menu mnu_SubTest1
         Caption         =   "&SubTest1"
         HelpContextID   =   150
         Shortcut        =   {F4}
      End
      Begin VB.Menu mnu_SubTest2
         Caption         =   "&SUbTest2"
         Shortcut        =   {F5}
      End
      .
      .
      .
End

This is very easy to modify. I suggest you to make a small testing app and look how VB translate the menu into code.

0
 

Author Comment

by:optical
ID: 1444587
Thank you, one problem with your solution, tab spacing is crucial to any operation.  Plus making a copy and editing that in case total failure of your menu will keep your prior work.
Thank you again for being there....Will write again soon.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question