Cannot do owner draw on menus (Vb 2008)

S

sam

I try to use owner draw on menus (toolstripmenuItem). But there is no
MeasureItem and/or DrawItem events.
TIA
Sam
 
F

Family Tree Mike

sam said:
I try to use owner draw on menus (toolstripmenuItem). But there is no
MeasureItem and/or DrawItem events.
TIA
Sam

Then I believe you will need to use the Menu and MainMenu classes to do the
custom drawing.

Mike
 
A

Alex Clark

The ToolStripMenu and associated classes are significantly more advanced
than the old MenuItem classes, which effectively negates the need for owner
drawing. You can use the ToolStripControlHost control to add literally any
control you want onto your menu. This includes a grid (or other container)
made up of other controls.

HTH,
Alex
 

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