Results 1 to 2 of 2

Thread: keycode: ctrl+vbkey1 ?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    how can I make a combination like ctrl+1?

  2. #2
    Guest
    Purdy easy:

    Code:
    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
        Dim CtrlDown
        Const vbCtrlMask = 2
        CtrlDown = (Shift And vbCtrlMask) > 0
        If KeyCode = vbKey1 Then
        If CtrlDown Then
        MsgBox "CTRL+1"
        End If
        End If
    End Sub
    Easier than you thought it would be?

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