I have to spray on the terrible waste of burning expensive resources like the Control window and the Window, just to draw a damn icon. To save one line of code:
protected override void OnPaint(PaintEventArgs e) { e.Graphics.DrawIcon(SystemIcons.Error, 10, 10); base.OnPaint(e); }
Hans passant
source share