|
发表于 2020-12-14 19:15:01
|
显示全部楼层
private void txtBoxName_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)Keys.Return)
{
txtBoxPwd.Focus();
}
}
private void txtBoxPwd_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)Keys.Return)
{
btnLogin.Focus();
}
}
最近也在学,看看这样 |
|