I'm working on OSK program, i have created a custom Button inherited from System.Windows.Forms.Button, now i want to implement key repeater, that is when the button pressed by the mouse left button for half a second, it continuously send the button's scan code until the mouse release, to do that i'm using a timer.
I have two choices:
1- Defines the timer in my custom Button (in this case there will be more than 100 timers)
2- Defines the timer in my main form (in this case there will be only one timer)
I have two choices:
1- Defines the timer in my custom Button (in this case there will be more than 100 timers)
2- Defines the timer in my main form (in this case there will be only one timer)