Solved

Menu Editing

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now