hello!
i need help with mouse click.
i need to place in a timer_tick a code that detect if i clicked with the mouse.
so i know that i can use on mouse click event ,but i have many and many controls so it's take a lot of time and code so simply and for me it's the hard thing,i want to detect if the mouse had been clicked or not.
so thank you for help!:)
cocoll
0
Junior Poster in Training
Recommended Answers
Jump to PostHi,
You doesn't need a timer for this.
Here's an example:Private Sub Form1_Mousedown(ByVal sender As System.Object, ByVal e As _ System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown If e.Button = MouseButtons.Left Then MsgBox(" You clicked the Left mousebutton") End If End Sub
All 3 Replies
Reply to this topic
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.