private void TB_Codigo_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.Enter) { if (TB_Codigo.Text.Trim() == "") { return; } Legajo LegajoAModificar = new Legajo(); LegajoAModificar = L.BuscarUno(TB_Codigo.Text); _CargarLegajo(LegajoAModificar); TB_DescLegajo.Focus(); } else if (e.KeyData == Keys.Escape) { TB_Codigo.Text = ""; } }
private void AgModLegajo_Shown(object sender, EventArgs e) { TB_DescLegajo.Focus(); }