Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Create menus Runtime Using Visual Basic

Posted on 2003-10-23
6
188 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert GUI app into console app for Win32 Env 5 109
Access Object Property from VBA Module in Excel 2010 2 37
Hide vba in gp 7 104
Dinamic report to Crosstab query 9 33
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

840 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