private void NumerosSinComa(object sender, KeyPressEventArgs e) { TextBox tb = sender as TextBox; Debug.Assert(tb != null, "sender no es de tipo textBox"); if (tb != null) { FormateoDatos.soloNum(e, tb); } }