Results 1 to 3 of 3

Thread: Ctrl Key

  1. #1
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1

    Unanswered: Ctrl Key

    How can you check the pressed keys Ctrl+F10

    I tried

    PHP Code:
     Private Sub Form_KeyDown(KeyCode As IntegerShift As Integer)
        If 
    KeyCode =  vbKeyControl vbKeyF10 Then
            
    .......
         
    End If
     
    End Sub 
    Is there an extra code for the combination of CTRL & FKeys?

  2. #2
    Join Date
    Sep 2004
    Posts
    161
    I have found this syntax in the help of A97 :
    For Ctrl Key
    Code:
        If KeyCode = vbKeyF10 And _
        (Shift And acCtrlMask) > 0 Then
           MsgBox "toto"
         End If
    For Alt Key
    Code:
        If KeyCode = vbKeyF10 And _
        (Shift And acAltMask) > 0 Then
           MsgBox "toto"
         End If
    For Shift Key
    Code:
        If KeyCode = vbKeyF10 And _
        (Shift And acShiftMask) > 0 Then
           MsgBox "toto"
         End If
    I have try it and is work for me

  3. #3
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1
    Thanks very much, I'll have a look.
    Have nice weekend too

Posting Permissions

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