473,327 Members | 2,012 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,327 software developers and data experts.

MenuItem vs. ToolStripMenuItem

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 because the existing control causes
me some problems. Specifically I nothice that ToolStripMenuItem does not
have a PopUp event or the OwnerDraw property. My 2003 project utilizes these
elements

I suspect that somewhere on the Internet (but not findable by me) has got to
be a discussion of how to use ToolStripMenuItem as a replacement for the
MenuItem. Can someone provide me any reference that discusses these
controls with respect to each other and how to upgrade from the old one to
the new one.

In my specific case, I am using code that closely resembles code in:
http://www.codeproject.com/vb/net/Vb...erDrawMenu.asp. This is the code I
would like to see rewritten to utilize the ToolStripMenuItem.

Any help would be appreciated.
Sep 16 '06 #1
2 5644
well what are you using the OwnerDrawing for? Images? if so, the new
toolstripmenuitem has an image property, which means you dont have to do
eveyrthing programmatically. you can set the image in the designer and
voila....however, if you want custom back colors, etc, take a look at the
ToolStripProfessionalRenderer object. if you need an example, i have one on
codeplanet (once their server is back up and running, i can give you the link)

hope this helps
--
-iwdu15
Sep 16 '06 #2
For anyone interested in this subject. I did find the following link. It
seems to address my specific needs.

http://www.codeproject.com/useritems...oMenuStrip.asp
Sep 17 '06 #3

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

Similar topics

6
by: Claus Holm | last post by:
I'm trying to enable a menuitem in the parent form from a mdichild. Rather than making the menuitems public, I'd go for a public method in the parent form to do the change, but when I call the...
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: polocar | last post by:
Hi, I'm writing a program using Visual C# 2005 Professional Edition, and I was trying to assign multiple MainMenu objects (one by one, of course) to the same Form (let's suppose 2 MainMenu...
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: Dean Slindee | last post by:
I need to be able to separate toolstripmenuitems from toolstripseparators, both of which are children of a toolstripdropdropbutton. The last statement does not pass validation. Is there any way...
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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...
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
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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.