D David Sobey Apr 3, 2005 #1 anyone know a simple way to make a font property persist for a custom control? cheers dave
G Gabriel Lozano-Morán Apr 4, 2005 #2 In the constructor set the font for the control and override the font property and leave out the setter. public MyTextBox() { InitializeComponent(); } public override Font Font { get { return base.Font; } } private void InitializeComponent() { this.Name = "MyTextBox"; this.Font = new Font("Tahoma",8); } Gabriel Lozano-Morán
In the constructor set the font for the control and override the font property and leave out the setter. public MyTextBox() { InitializeComponent(); } public override Font Font { get { return base.Font; } } private void InitializeComponent() { this.Name = "MyTextBox"; this.Font = new Font("Tahoma",8); } Gabriel Lozano-Morán