Adding and deleting a menuitem at runtime

Posted on 1998-10-11
Last Modified: 2010-04-30
Is this true, or faked, as I am thinking.  I can make a control array, and set it to invisible, and then set it to visible, but is that being dynamic?
If so, can someone show me a little sample code to add and delete a menuitem at runtime please.

Question by:menuguy
  • 2

Accepted Solution

a111a111a111 earned 200 total points
ID: 1439250
Option Explicit

Private Sub nmuMenu1_Click()
nmuMenu2.Visible = True

End Sub
Private Sub nmuMenu2_Click()
nmuMenu2.Visible = False

End Sub


Expert Comment

ID: 1439251
If you need the complete project you can download it:

Author Comment

ID: 1439252
I have found what I was looking for, create the menu array, and then use load menu(1), and once done remove with unload menu(1).

Thanks anyway, I probably didn't make my question clear enough.

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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 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…

776 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