473,395 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to add menu item programatically?

I have a menu with three top level item "red", "green", "blue".
I want, programatically, to add under "grren" "light green" ?
tnx
Nov 21 '05 #1
5 2367
<mozart> schrieb:
I have a menu with three top level item "red", "green", "blue".
I want, programatically, to add under "grren" "light green" ?


\\\
Me.MainMenu1.MenuItems(0).MenuItems.Add(2, New MenuItem("Light green"))
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2
thanks!!
Nov 21 '05 #3
Herfried,

It is always nice to see how Wagner helps Mozart.

How it is with the level of the water in Wien by the way.
(I do it in this open newsgroup because maybe more people are anxious to
know about you).

Cor
Nov 21 '05 #4
Cor,

"Cor Ligthert [MVP]" <no************@planet.nl> schrieb:
It is always nice to see how Wagner helps Mozart.
:-)
How it is with the level of the water in Wien by the way.
(I do it in this open newsgroup because maybe more people are anxious to
know about you).


I am currently not in Vienna, but I have heard that the water level of the
Donau is high. However, im some other parts of Austria there were severe
damages.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5
Oh, but this is very simple, when trying to choose a random pesudo name
this morning my eye came across a mozart kugeln, so I thought
that should be a good choice. Sorry for the confusion (retrospectively)
it probably is a wrong choice to use someone elses name.
Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Heather | last post by:
I notice the Tag property for menu items. Is there a way to assign say a 1 to the Tag property of certain menu items and then make those menu items not visible programatically? Thanks! Heather
13
by: Rich B. | last post by:
I have an MDI form with a single child form. I have found a couple of circumstances that appear to cause the framework to leak Int32s, MenuItems, MenuItemCollections and sometimes...
2
by: PJSimon | last post by:
I have a system tray icon for my application. Each time the user pastes some text into the application, I add a submenu item in the system tray's context menu. The first time I right-click the icon...
5
by: lgbjr | last post by:
Hello All, I have several Pictureboxes (linked to an AccessDB) on a VB.NET form. I would like to use a context menu to allow the user to open the picture in their default picture viewer or...
2
!NoItAll
by: !NoItAll | last post by:
I have a menu in my project and am trying to programatically change the checked property on one of the menu items. When I try: MainMenu1.MenuItems.Item("mnuBalloon").Checked = True It passes...
4
by: Bob Homes | last post by:
In VB6, I used a system, which I loved, whereby I assigned a "helpId" to each menu item; that way, you could rest the cursor on the item (without actually running it) and then press F1 to get...
2
by: Afshar | last post by:
Dear nice people around the world! Please help ending this nightmare, I have 2 problem with ASP.NET Menu control First: I have a horizontal menu at top of my page, each item have some sub-items...
0
by: boeroboy | last post by:
Hi all. I know there is a lot of mystery around the desktop context menu. Plenty of brickerbrack about adding shell menu extensions, but not much on shownig it. Using ShellContextMenu interfaces,...
3
by: =?ISO-8859-1?Q?Jo=E3o_Maia?= | last post by:
Hi there, I am having a weird problem in trying to use a ASP.NET menu inside a custom web part. I am developing a custom web part that has a menu inside (just the menu, nothing else). The menu...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.