Click here to Skip to main content
15,914,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to start timer when i scroll my mouse in windows form while drawing signature in canvas and it should stop when i will press stop button which is outside the canvas??
Posted
Comments
BillWoodruff 1-Dec-13 8:25am    
When I think of someone drawing something, or writing a signature, I think of someone moving the mouse, not using the scrollwheel on the mouse: when you say "scroll my mouse," what exactly do you mean ?

A frequently found convention in drawing programs, where you want to record some number of points as the mouse moves, is to start and stop a Timer with mouse-down, and mouse-up events. Of course you can do it another way, but ... assuming the Timer is running ... aren't you going to get some unwanted extra points, or lines, or curves, or whatever, when you go to move off the "canvas" to click the stop button ?

What exactly is the "canvas" you are drawing on ?

1 solution

try visit your old friend his name is GOOGLE and pay frequent visits and your question will be answered. here are some links

For Mouse event
http://stackoverflow.com/questions/18832747/mousewheel-scroll-down-event-in-c-sharp-winform-programmatically-done[^]

http://stackoverflow.com/questions/479284/mouse-wheel-event-c[^]


and to stop timer on button
timer1.Stop();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900