public static void controlIngresoNumeroEntero(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)(Keys.Back)) return; if (!Char.IsDigit(e.KeyChar)) { e.Handled = true; } }