I am making simple paint application in which a line would be drawn whenever someone holds down the mouse button and drags(exactly like in windows paint).
However i am having a hard time finding the suitable event handler for this. MouseDown is simply not working and MouseClick is only jotting down dots whenever i press a mouse down.
Need help in this matter.
Thanks.
Handle
MouseDownand set a boolean variable to true. HandleMouseMoveand, if the variable is set to true and the mouse’s movement is above your desired treshold, operate. HandleMouseUpand set that variable to false.Example: