I have written a login. Now I want to do this (press return to login):
Private Sub login_KeyDown(ByVal sender As Object,
ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.KeyData = Keys.Return Then
login()
End If
End Sub
It does not work. At this time it works only with a button.