日期:2014-05-17 浏览次数:21190 次
Private Sub UseNoTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles UseNoTextBox.KeyPress
If Asc(e.KeyChar) = 13 Then
e.Handled = True
PasswordTextBox.Focus()
PasswordTextBox.SelectAll()
End If
End Sub
private void UseNoTextBox_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if (Strings.Asc(e.KeyChar) == 13) {
e.Handled = true;
PasswordTextBox.Focus();
PasswordTextBox.SelectAll();
}
}
if (e.KeyVal == 13)
{ e.Handled = true;
PasswordTextBox.Focus();
PasswordTextBox.SelectAll();
}