Results 1 to 3 of 3

Thread: Disabling the F10 key

  1. #1
    Guest
    Help,
    My application uses the f1 to f10 keys to do something. They all work, however, after f10 does it's thing it also higlights the 1st item on the menu bar. Try it now and see what I mean. Is there a way to disable this "feature" in windows so that f10 only does what I tell it to do? As of right now the user has to press escape to get back to where he was.

    Thanks

  2. #2
    Guest
    Code:
    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = vbKeyF10 Then
    KeyCode = 0
    End If
    End Sub

  3. #3
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633

    Wink

    In addition, if you are pressing keys while the form has focus, you also must change the property of the "KeyPreview" = True. This will let the form takes keystroke.
    Chemically Formulated As:
    Dr. Nitro

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