Пример #1
0
 private void ChkNosAplicaRetencion_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == 13)
     {
         TxtEmpresa.Focus();
     }
 }
Пример #2
0
        private void BtnAddProveedor_Click(object sender, EventArgs e)
        {
            BtnAddProveedor.Tag = 1;

            HabilitarControles(true);
            TxtEmpresa.Focus();
            Proveedor proveedor = (Proveedor)BindingSource.Current;

            if (proveedor != null)
            {
                if (proveedor.Id != 0)
                {
                    LimpiarCampos();
                }
            }
        }