please i want to use mouse move event in windows form to get mouse coordinates to show it in the form.and using this coordinates use the events mouse up and mouse down to draw a line .
Jump to Post
Sounds like homework :) lol.
This is so easy. rig up your mouse down and mouse up events and create class variables of type Point. Then get the mouse coordinates with the event arguments on mouse down, save it to the first. then on mouse up get the mouse …
All 3 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.