public partial class TextBoxEx : TextBox { public TextBoxEx() { InitializeComponent(); Font = Utility.normalFont; } protected override void OnPaint(PaintEventArgs pe) { base.OnPaint(pe); } } //A utility class to initialize font. class Utility { internal static Font normalFont = new Font("Arial", 18); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)