Solved

Menu Editing

Posted on 1998-11-12
3
145 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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…
Suggested Courses
Course of the Month8 days, 11 hours left to enroll

615 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