Solved

Menu Editing

Posted on 1998-11-12
3
143 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 50 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

825 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