Raises the Control.KeyPress event.
- source
- The source of the event.
- e
- A System.Windows.Forms.KeyPressEventArgs that contains the event data.
The System.Windows.Forms.NumericUpDown control accepts only digits, the negative sign, the decimal point, and editing keystrokes, such as BACKSPACE. If the NumericUpDown.Hexadecimal property is set to true, System.Windows.Forms.NumericUpDown accepts hexadecimal digits.