Detect both left and right mouse click at the same time?

前端 未结 6 1808
礼貌的吻别
礼貌的吻别 2020-12-17 01:51

I\'m remaking windows Minesweeper (from XP) and something they had included was that if you click a number with as many flags as it\'s number with the left and right mouse b

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-17 02:50

    Try this,

    Private Sub Form_Click(... , ByVal e As ystem.Windows.Forms.MouseEventArgs)
    
    If e.Button = MouseButtons.Right And e.Button = MouseButtons.Left Then
    MsgBox ('Right & Left code')
    
    End If
    

提交回复
热议问题