代码为何不执行
private void textName_KeyPress(object sender, KeyPressEventArgs e){
if (e.KeyChar == '\r')
textPass.Focus();
}
private void textPass_KeyPress(object sender,KeyPressEventArgs e)
{
if (e.KeyChar == '\r')
butLogin.Focus();
}
问题:回车有响声,不执行代码
小弟刚开始接触C#,云里雾里,请教大家