Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Adding MDI Menu Options at Runtime

Posted on 2005-05-13
Medium Priority
Last Modified: 2011-10-03
In my VB 6.0 app I have the forms set up as MDI.  On my MDI parent I have menu options set up.  Examples of the base options are:

File               Edit     etc...
Save             Cut
Save As        Paste

These will appear as a menu bar.

I have many other options that I want to add that will only be used as popup menu's.  I know I can add them to the menu using the menu editor but since this list could be much more dynamic I am looking for a way to do it in code.  The structure of what I would like to add is something like:  (I will use indentation to denote levels)  Initially I would like them all hidden.  I would make them visible and reference them as popups at the appropriate times.

Caption: Description Options  Name: mnuDescirption  highest level
      Caption: Edit this Description       Name:desEdit
      Caption: Copy this Description      Name:desCopy
      Caption: Delete this Description    Name:desDelete

Caption: Evaluation Options  Name: mnuEvaluation  highest level
      Caption: Edit this Evaluation       Name:evalEdit
      Caption: Copy this Evaluation     Name:evalCopy
      Caption: Delete this Evaluation   Name:evalDelete

These items would have to be added to the exsiting menu items.
Question by:mlcktmguy
1 Comment

Accepted Solution

Burbble earned 1000 total points
ID: 14001034

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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…
Suggested Courses
Course of the Month14 days, 6 hours left to enroll

580 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