Hi
My Code is as follows. I have set the form's Keypreview to True,
but when I press "F10" the focus shifts to the form itself.
I cannot seem to find a solution.Code:Private Sub txtCode_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtCode.KeyDown If e.KeyCode = Keys.F10 Then txtPassword.Visible = True txtPassword.Text = "" txtPassword.Focus() End If End Sub
All help will be appreciated.