dotnetmonitor.com

 
Index
Previous
Next

 

Connected area is that little bit of the dropdown for a menu where the border is discontinuous. Below is an examples of how to access and paint that.

 

protected override void OnRenderToolStripBorder(ToolStripRenderEventArgs e)

{

using (Brush b = new SolidBrush(ColorTable.MyBackgroundColor))

{

e.Graphics.FillRectangle(b, e.ConnectedArea);

}

}

Painting
When should I use Paint/OnPaint and when should I override the ToolStripRenderer?
Do I need to worry about double buffering?
Parenting
Partial Trust
Usage