dotnetmonitor.com

 
Index
Previous
Next

 

If you want to tweak a few aspects of how an item is painted, overriding the ToolStripRenderer might be the right idea.

 

If you are writing a new item and want to control all aspects of the painting, overriding OnPaint will give you total control. From the OnPaint, you can use methods from the ToolStripRenderer by calling Owner.Renderer.DrawItemImage(new ToolStripItemImageRenderEventArgs(e));

Painting
Do I need to worry about double buffering?
Parenting
Partial Trust
Usage