MenuItem vs. ToolStripMenuItem

G

Guest

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/VbNetOwnerDrawMenu.asp. This is the code I
would like to see rewritten to utilize the ToolStripMenuItem.

Any help would be appreciated.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top