如题,将小键盘的0,1组合

解决方案 »

  1.   

    比如我想通过同时按0和1实现一个事件,不要alt+1,因为想通过小键盘实现
      

  2.   

    试一下这样Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = 96 Then
        Me.Tag = "1"
    End If
    End SubPrivate Sub Form_KeyPress(KeyAscii As Integer)
    If KeyAscii = 49 And Me.Tag = "1" Then
        Debug.Print "按了"
    End If
    End SubPrivate Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
    If KeyCode = 96 Then
        Me.Tag = "0"
    End If
    End Sub
      

  3.   

    是用全句钩子 不过VB中可能我自己不行 还写不出来,
    但是vc++可以写出来