コード例 #1
0
 private void txtDataFabricacao_KeyPress(object sender, KeyPressEventArgs e)
 {
     ControleFormato.FormataData(ref txtDataFabricacao);
     if (!Char.IsDigit(e.KeyChar) && e.KeyChar != (char)8)
     {
         e.Handled = true;
     }
 }
コード例 #2
0
 private void txtCampoData_KeyPress_1(object sender, KeyPressEventArgs e)
 {
     ControleFormato.FormataData(ref txtCampoData);
     if (!Char.IsDigit(e.KeyChar) && e.KeyChar != (char)8)
     {
         e.Handled = true;
     }
 }
コード例 #3
0
 private void txtPesoLiquido_KeyPress(object sender, KeyPressEventArgs e)
 {
     ControleFormato.Formatacao(ref txtPesoLiquido);
     if (!Char.IsDigit(e.KeyChar) && e.KeyChar != (char)8)
     {
         e.Handled = true;
     }
 }