Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Menu Editing

Posted on 1998-11-12
3
Medium Priority
?
146 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 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

721 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