见题

解决方案 »

  1.   

    Private Sub MSFlexGrid1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
        If Button = vbLeftButton Then
            MsgBox "左键"
        Else
            MsgBox "右键"
        End If
    End Sub
    没有单独处理左右键的事件
      

  2.   

    Private Sub MSHFlexGrid1_KeyDown(KeyCode As Integer, Shift As Integer)
        If KeyCode = 37 Then
            MsgBox " 向左 "
            
        ElseIf KeyCode = 39 Then
            MsgBox " 向右 "
        End If
        
    End Sub
      

  3.   

    随便写一个事件,看一看他的ASC值就可以了
      

  4.   

    MSFlexGrid 中KeyDown事件不响应的,
    请注意是MSFlexGrid,不是MSHFlexGrid!