SamKr
6/9/2015 - 1:27 PM

Textbox Digits Only

Textbox Digits Only

private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
    e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar);
}