Esempio n. 1
0
 private void txtDtSaida_KeyPress(object sender, KeyPressEventArgs e)
 {
     cFuncoes.cFuncoes fn = new cFuncoes.cFuncoes();
     if (e.KeyChar != '\b')
     {
         if (Char.IsNumber(e.KeyChar))
         {
             fn.FormataCampos(cFuncoes.cFuncoes.OpcaoFormata.ForData, this.txtDtSaida);
         }
         else
         {
             e.Handled = true;
         }
     }
 }