Solved

Adding and deleting a menuitem at runtime

Posted on 1998-10-11
3
199 Views
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.

Thanks
0
Comment
Question by:menuguy
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
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


0
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1439251
If you need the complete project you can download it:
http://www.hili.com/~shay/menu.zip
0
 

Author Comment

by:menuguy
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.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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…

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

12 Experts available now in Live!

Get 1:1 Help Now