Example #1
0
 private void txtImporte_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (Char.IsDigit(e.KeyChar))
     {
         e.Handled = false;
     }
     else if (Char.IsSeparator(e.KeyChar))
     {
         e.Handled = false;
     }
     else if (e.KeyChar == 46)
     {
         e.Handled = false;
     }
     else if (e.KeyChar == Convert.ToChar(Keys.Enter))
     {
         BtnGrabar.Focus();
     }
     else if (Char.IsControl(e.KeyChar))
     {
         e.Handled = false;
     }
     else
     {
         e.Handled = true;
     }
 }
Example #2
0
 private void chkActivo_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         BtnGrabar.Focus();
     }
 }
 public TalonariosBancos()
 {
     InitializeComponent();
     SiaWin = System.Windows.Application.Current.MainWindow;
     idemp  = SiaWin._BusinessId;
     LoadConfig();
     controls(true);
     BtnGrabar.Focus();
 }
Example #4
0
 private void BtAdicionar_Click(object sender, EventArgs e)
 {
     this.MP_CopiarImagenRutaDefinida();
     BtnGrabar.Focus();
 }
Example #5
0
 private void ChkActivo_Click(object sender, EventArgs e)
 {
     BtnGrabar.Focus();
 }