protected override int GetPreferredHeight(Graphics g, object val) { // Return the font height, plus a few pixels. return FontHeight + 2; }