예제 #1
0
 private void CMBDOC_KeyPress(object sender, KeyPressEventArgs e)
 {
     if ((int)e.KeyChar == (int)Keys.Enter)
     {
         TXTNUMERO.Focus();
     }
 }
예제 #2
0
 private void ArmazenarNumero()
 {
     try
     {
         numero = Convert.ToInt32(TXTNUMERO.Text);
     }
     catch
     {
         MessageBox.Show("Você pode apenas digitar números reais neste campo, tente novamente");
         TXTNUMERO.Focus();
         return;
     }
 }
예제 #3
0
        private void ArmazenarInformacao()
        {
            try
            {
                numero = Convert.ToInt32(TXTNUMERO.Text);
            }

            catch
            {
                MessageBox.Show("Digite um número real");
                TXTNUMERO.Focus();
                return;
            }
        }