protected OnPaint ( PaintEventArgs e ) : void | ||
e | PaintEventArgs | |
return | void |
protected override void OnPaint(PaintEventArgs e)
{
// draw border and background
e.Graphics.DrawRectangle(SystemPens.InfoText, 0, 0, Width-1, Height-1);
e.Graphics.FillRectangle(SystemBrushes.Info, 1, 1, Width-2, Height-2);
}