Cannot do owner draw on menus (Vb 2008)

  • Thread starter Thread starter sam
  • Start date Start date
S

sam

I try to use owner draw on menus (toolstripmenuItem). But there is no
MeasureItem and/or DrawItem events.
TIA
Sam
 
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
 
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

Back
Top