Hello,
Welcome to Microsoft Q&A
If you want to allow user to keep pressing a button to increase number value, you could use RepeatButton control to replace Button
control.
RepeatButton
can raise its Click
event repeatedly when it is pressed and held, you could set the RepeatButton.Interval
property to set the time, in milliseconds, between repetitions of the click action, as soon as repeating starts.
You could refer to the document for more information about Button
and RepeatButton
.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.