473,511 Members | 15,384 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MENU STRIP ITENS AND DROPDOWNITENS

I'm trying to read for all elements in a menustrip menu in a MDI form.
With this code I take only 2 levels.:

tb1.Text = ""
For Each child As ToolStripMenuItem In MenuStrip1.Items
TextBox1.Text += child.Text & vbCrLf
For Each Menu1 As ToolStripItem In child.DropDownItems
TextBox1.Text += Menu1.Text & vbCrLf
Next Menu1
Next child

But I have more then 2 levels in my menustrip.

How can I scan every levels?

Tia

Marcos Stabel
Apr 3 '07 #1
0 831

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

Similar topics

10
5971
by: Richard | last post by:
The style sheet shown below is from the suckerfish vertical menu. http://www.htmldog.com/articles/suckerfish/dropdowns/example/vertical.html I've added in a few minor changes to color code the...
0
2174
by: nail | last post by:
Hi. I have this xml file: <menu> <header caption="File"> <item header="File" caption="New File"></item> <item header="File" caption="Open File"></item> <item header="File" caption="Close...
0
2070
by: Brian Henry | last post by:
I thought this was useful, its a extender i just wrote for the new .NET menu strip and status strip to extend the menu items to add a status message so when a mouse rolls over the item it displays...
6
6842
by: TyBreaker | last post by:
What is the best way to create a menu bar like the Office menu bar ie one that can dock to the four corners of the screen? Is it a standard windows form or is it some other more specialised...
0
1813
by: steffen_home_92 | last post by:
hi ng, I actually want to program an application whose main window contains a menu strip and a tree view control. In the main menu there are items I want to use for a context menu strip in the...
2
1787
by: Bruno Alexandre | last post by:
Hi guys, I have a Menu component that I'm using the itens collection (via properties menu) to populate (i'm not using any DataSource, or populating on the fly using code). my question is How...
0
1298
by: Tom | last post by:
In the old VS 2003 Menu bar, it would scroll the list if it extended beyond the end of the screen (i.e. you had 60 reports in a menu and it displayed the little down-arrow at the end of the...
8
2090
by: gs | last post by:
I was able to set tooltips on objects other than main menu. I would like to get the effect of tooltip or microhelp in the bottom status bar when the mouse is hovering over a submenu item. How do...
2
2256
by: parez | last post by:
Hi, I build the menu strip using the designer.I want the context menu of the form to be same as the of children of one of the top leven Menu strip item. Items gives me a ToolStripItem...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7353
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
7418
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...
1
7075
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...
0
7508
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
446
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.