Pressing Enter-To go to Next control in Windows Form

Debendra256
Posted by Debendra256 under C# category on | Points: 40 | Views : 868
private void txt_invoice_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
txt_date.Focus();
}

private void txt_date_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
txt_patientname.Focus();
}
}

Comments or Responses

Login to post response