How can i detect mouse button clicked?
does i have to use api function?
Naruse 22 Junior Poster in Training
Recommended Answers
Jump to Postthis will detect if mouse button clicked :
Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown If e.Button = MouseButtons.Left Then MsgBox("left button clicked") ElseIf e.Button = MouseButtons.Right Then MsgBox("Right button clicked") End If End Sub
All 5 Replies
Naruse 22 Junior Poster in Training
Jx_Man 987 Nearly a Senior Poster Featured Poster
Naruse commented: thx..i didn't know how easy it is +1
Naruse 22 Junior Poster in Training
Naruse 22 Junior Poster in Training
Jx_Man commented: nice converting +9
Jx_Man 987 Nearly a Senior Poster Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.