protected override void Crear() { base.Crear(); Txtcrnc_edulacliente.Focus(); tabCrtBase1.SelectedIndex = 0; BtnBuscarCliente.Visible = false; TxtCodigocliente.Enabled = false; TxtCodigocliente.Text = Logistica.FuncionesSQL.Fun_SQL_Buscar_UltimoCod("idcliente", "cxcdbfcliente"); }
private void cmbtipoprecio_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == Convert.ToChar(Keys.Enter)) { Txtcrnc_edulacliente.Focus(); Fun_Enfocar_Menu2(e); } }
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; } }