|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
MenuItem vs. ToolStripMenuItemI 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. 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 For anyone interested in this subject. I did find the following link. It
seems to address my specific needs. http://www.codeproject.com/useritems/UpgradeToMenuStrip.asp |
|||||||||||||||||||||||