Solved

Create menus Runtime Using Visual Basic

Posted on 2003-10-23
6
182 Views
Last Modified: 2013-11-25
I wan to create All menus at run time there are

Top Level Menu ( I dont know Total Count to Top Level Menu)
1st Child
2nd Child
3rd Child

I had tried a lot but didnt get any solution.. please help me if any body knows
0
Comment
Question by:dhavalgs
6 Comments
 
LVL 7

Expert Comment

by:_agj_
ID: 9606069
Create a single menu item and use Load mnuItemName(index) to add more
0
 
LVL 3

Expert Comment

by:TheQuestion
ID: 9606215
0
 

Expert Comment

by:lacevdo
ID: 9608674
You must use a MenuArray Control Array. (declare at design time a menu with index 0,
that means that this menu is a Menu Control Array that begins in 0)

After that use Load MyItem(index) to add more items to the Menu Control Array
(Index Must begin in 1).

To Delete items from the Menu Control Array just use Unload Myitem(Index)
0
 
LVL 48

Accepted Solution

by:
Mikal613 earned 125 total points
ID: 9898826
If TheQuestion is accepted please Accept This Comment because TheQuestion is now known as Mikal613
0
 
LVL 27

Expert Comment

by:planocz
ID: 10173465
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
No response from dhavalgs from 12/8/2003 comment
Award points to Mikal613 is recommend.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

planocz
EE Cleanup Volunteer
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

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