示例#1
0
        private void btnBuscarcondicion_Click_2(object sender, EventArgs e)
        {
            MainFormConsultaGeneral consulta = new MainFormConsultaGeneral("select idcondicion as codigo, descripcion from gendbfcondicion where nulo = 0", "descripcion", "Condiciones");

            if (consulta.ShowDialog() == DialogResult.OK)
            {
                Txtcondicion.Text = consulta.MainGrid.SelectedRows[0].Cells[0].Value.ToString();
                Completar_condiciones();
                if (Txtcondicion.Text != string.Empty)
                {
                    Txtcondicion.Focus();
                }
            }
        }
示例#2
0
 private void tabCrtBase1_SelectedIndexChanged_2(object sender, EventArgs e)
 {
     if (tabCrtBase1.SelectedIndex == 0)
     {
         Txtcrnc_edulacliente.Focus();
     }
     if (tabCrtBase1.SelectedIndex == 1)
     {
         this.gribbalance.DefaultCellStyle.Font         = new Font("Tahoma", 8, FontStyle.Bold);
         gribbalance.Columns[1].DefaultCellStyle.Format = "C2";
         Txtcondicion.Focus();
         tabCrtBase1.TabStop = false;
         fun_balancexmoneda();
         gribbalance.Columns[0].ReadOnly = true;
         gribbalance.Columns[1].ReadOnly = true;
     }
 }
示例#3
0
 private void button1_Click_1(object sender, EventArgs e)
 {
     Txtcondicion.Focus();
 }