private void TxtTelEmpresa_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 13) { TxtSalario.Focus(); } }
private void BtnLimpiar_Click(object sender, EventArgs e) { LblResultado.Visible = false; LblResultado.Text = ""; TxtAnitguedad.Text = ""; TxtSalario.Text = ""; TxtSalario.Focus(); }
private void BtnCalcular_Click(object sender, EventArgs e) { double sal, aum; sal = Convert.ToDouble(TxtSalario.Text.Trim()); aum = Convert.ToDouble(TxtAumento.Text.Trim()); SalAum.Aumsal(sal, aum); foreach (TextBox txt in this.Controls.OfType <TextBox>()) { txt.Clear(); TxtSalario.Focus(); } }