How can i detect mouse button clicked?
does i have to use api function?
this 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
i convert it into select-case.
thanks for direction :)
this is my convert code :
Select Case e.Button Case MouseButtons.Left MsgBox("left button clicked") Case MouseButtons.Middle MsgBox("Right button clicked") Case MouseButtons.Right MsgBox("Middle button clicked") End Select
Nice converting friend...
>>thanks for direction
Any time :)
This is the first in (hopefully) a series of posts about vbScript. Please see my post vbScript - The Basics for more details on vbScript.
My wife and I take ...
Hi, I've written this code which i send below. now i have a listview, and when i click each item in my listview, i want it's related word to be ...
My plan is to post a series of hopefully useful and informative vbScript Functions and Subs. I started writing up my first code snippet and found ...