0

Before you think this is a duplicate. This question has nothing to do with a ContextMenuStrip. This question is regarding the legacy ContextMenu (.NET 1.1).


I am using the LEGACY ContextMenu because I like the look of it in Windows 7.

Does anyone know how I can place an image (without owner drawing) on a MenuItem? Or is this a limitation? Maybe some API?

No, I don't want to use the ContextMenuStrip.

test
  • 2,589
  • 2
  • 24
  • 52
  • Original, closed thread because people thought I was talking about a ContextMenuStrip: http://stackoverflow.com/questions/15393448/how-can-i-place-an-image-on-a-system-windows-forms-menuitem – test Mar 19 '13 at 23:54
  • You still have to use MenuItem.OwnerDraw, as described in the marked answer to the duplicate question. You already knew that, it is unclear why you repeat the question. At least describe what you don't understand about the example code shown in the MSDN article for the OwnerDraw property and post your own attempt at writing the DrawItem event handler. – Hans Passant Mar 20 '13 at 01:51
  • @HansPassant Because, owner drawing the menu looks like garbage. I want the gradient blue rounded rectangle style in Windows 7. There's no way I have to redraw all of that in GDI+ just to place an image. – test Mar 21 '13 at 21:29

0 Answers0