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

Converting ToolStripMenuItem to MenuItem

1
I need to convert ToolStripMenuItem to MenuItem, but i cannot find any casting.

what i need to do is to get a toolstripmenuitem and add to it new DropDownItem and then somehow return the whole new toolstripmenuitem with the new dropdownitem as a menuitem, i tried to go on a foreach loop over the dropdownitems and manually add the dropdownitems to the menuitem but i cannot managed to add the events of the dropdownitems too..

if you can give me a direction how to do that it will be wonderful
Aug 11 '12 #1
0 1772

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: news.microsoft.com | last post by:
I am trying to write a menu handler to enable/disable menu selections based on user permissions. I did this in VB6 - no problem - but since I have now lost the name of the menu, I'm trying to come...
6
by: Pascal | last post by:
I can't find the equivalent of the old MenuItem.RadioCheck property on ToolStripMenuItem. I need to allow the menu to have a subgroup of mutually exclusive choices. How am I supposed to do...
2
by: genojoe | last post by:
I have a VB 2003 project that I have updated to 2005. I notice that MenuItem is being phased out and replaced by ToolStripMenuItem. I want to investigate the new capabilities of this new control...
3
by: Henry | last post by:
I am trying to convert code that worked in a Visual Studio 2003 project to code that will work in a Vsual Studio 2005 project and need help. The following is the VS2003 code: private void...
0
by: genojoe | last post by:
I have a menu structure that formats that left aligns string1 and right aligns string2. To do this, I use the OwnerDraw, Popup, DrawItem and MeasureItem properties or events of the MenuItem class....
0
by: Paul E Collins | last post by:
I was using the MenuItem.Index property to get the position of a menu item. For example, the topmost item on the menu has an Index of 0, the next is 1, then 2, and so on. I've switched to the...
3
by: Martijn Mulder | last post by:
My application has a standard MenuStrip on top of the window and a ContextMenuStrip that pops up when the user clicks the right mouse button. I have defined a ToolStripMenuItem that I want to...
0
by: kyungdongkim | last post by:
Hi, I have a dynamically generated MenuStrip following this example: http://www.codeproject.com/useritems/Dynamic_MenuStrip.asp Basically the menu strip allows users to save and load reports. ...
1
by: Paulson | last post by:
Dim arr(1) As String arr(0) = "Paulson1" For Each ctrl As ToolStripMenuItem In MenuStrip.Items For Each ctrl1 As ToolStripMenuItem In ctrl.DropDownItems If arr(0) = ctrl1.Text...
2
by: eBob.com | last post by:
I've been working on an app which has an array of RichTextBoxes. And I have a context menu for the RTBs. The context menu has two levels; the first level has two items, "Load Sample Text File"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.