Results 1 to 3 of 3

Thread: Disable ALT F2 Key

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Posts
    5

    Post

    here u go

    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)

    If KeyCode = vbKeyF2 Then
    If Shift = 4 Then
    KeyCode = 0 'ie do nothing
    End If
    Else
    Exit Sub
    End If

    End Sub


    the only other way of doing it would be to use subclassing (see www.vbaccelerator.com)
    and intercept the windows message at a lower level but thats quite hard.

  2. #2
    Lively Member
    Join Date
    May 1999
    Posts
    89

    Post

    Hi been able to disable all the F key in my acccess application but having trouble with the Alt F2 key. does anyone know how to disable this. The user could cause some major damage if this is pressed. As always thanks for your help.

    Thanks,

    Scott

  3. #3
    Lively Member
    Join Date
    May 1999
    Posts
    89

    Post

    Thanks for the speedy reply but unfortunallty the code doesnt work. what seemes to happen is access picks up the key before the code kicks in. Im going to keep seaching for an answer. Its one of those things I know it can be done, just dont know how

    Again Thanks,

    Scott

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