Solved

Adding and deleting a menuitem at runtime

Posted on 1998-10-11
3
200 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Vb.net 2008 2 56
vb script Microsoft Word tables portion of based on bookmark, count and add rows 1 47
Determine Range to Select 5 42
Passing a Text Box name to a Sub 6 71
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

919 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

21 Experts available now in Live!

Get 1:1 Help Now