Results 1 to 8 of 8

Thread: Function Key F10

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2014
    Posts
    9

    Function Key F10

    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.
    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
    I cannot seem to find a solution.
    All help will be appreciated.
    Last edited by Shaggy Hiker; Feb 13th, 2018 at 02:57 PM. Reason: Added CODE tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width