473,322 Members | 1,911 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,322 software developers and data experts.

how get the menu names

how can I get the names of all menus in a form
Can anyone send me the code please

tanks
Nov 21 '05 #1
3 941
"Carlos AZ" <Ca******@discussions.microsoft.com> schrieb:
how can I get the names of all menus in a form


'MainMenu' is, like timers, for example, a component. See (complete
thread):

<URL:http://groups.google.de/groups?threadm=MfEsc.331786%24rM4.13835730%40news4 .tin.it>

Keywords: enumerate, components, controls, form.

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

Nov 21 '05 #2
the code:

For Each mn As MenuItem In Me.MainMenu1.MenuItems
myname = mn.Text
Next

only get the top menu names
tanks

"Herfried K. Wagner [MVP]" wrote:
"Carlos AZ" <Ca******@discussions.microsoft.com> schrieb:
how can I get the names of all menus in a form


'MainMenu' is, like timers, for example, a component. See (complete
thread):

<URL:http://groups.google.de/groups?threadm=MfEsc.331786%24rM4.13835730%40news4 .tin.it>

Keywords: enumerate, components, controls, form.

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

Nov 21 '05 #3
"Carlos AZ" <Ca******@discussions.microsoft.com> schrieb:
For Each mn As MenuItem In Me.MainMenu1.MenuItems
myname = mn.Text
Next


You will have to recursively enumerate menu items. If a menu item has
subitems, 'mn.MenuItems.Count' will return a number greater than 0.

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

Nov 21 '05 #4

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

Similar topics

5
by: web1110 | last post by:
I have a menu set up as follows. Main Menu Windows Window List <list of windows) <Other window options> When I click on "Window List", I want to pop up a list of window names from a string...
5
by: Cecilia Bergengruen | last post by:
2 questions: 1)I inserted a menu in an mdi window form. I right clicked on a menu item and pressed edit names. I therefore edited all my menu item names. Then I right clicked and pressed edit...
8
by: I_AM_DON_AND_YOU? | last post by:
I have a Menu with 5 Menus as: Menu Name Menu Text M1 File M2 Edit M3 View M4 ...
1
by: Paul Remblance | last post by:
Menu Class: I am trying to build a menu system where the user menu options are authorised via a database. My first thoughts are to store the menu item (name) in the database so I can point to the...
4
by: Louly | last post by:
Hi everybody, I got the code for dimming a menu item from this group after looking for it for a long time thanks to those who share their experiences with the others :) The problem I'm facing...
6
by: roguefeebo | last post by:
Hello everyone, thanks for looking. I'll get right to the point: I'm having problems trying to figure out a hierarchy of menus in C; command-line style. Say, for example the program analyzes a...
1
by: smaheshwari84 | last post by:
hello i need a help regarding populating a drop down menu from the values in an database when a particular option is chosen in the previous menu. let there be two menus one list the type of...
1
by: awreese | last post by:
I've created a series of dropdown menus that work fine in Firefox, Safari, Camino, etc. but will not work at all in Windows IE. I'm presenting the whole file here hoping someone will come up with...
1
by: Kayvine | last post by:
Hi guys, this is a question I have for an assignment, it is pretty long, but I am not asking for the code(well if someone wants to write I'll be really happy, lol), but I just want to know how to...
2
by: Brian Kendig | last post by:
I'm trying to make a web page with a restaurant menu on it. Each line on the menu is the name of a dish (left-justified) and that dish's price (right-justified), with a dotted line between them....
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.