protected override void OnKeyPress(KeyPressEventArgs e) { if (_numeric) { if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar)) { e.Handled = true; } } base.OnKeyPress(e); }