[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Button click event keep executing while clicked

Posted on 2007-10-02
Medium Priority
Last Modified: 2013-11-26

I have a tochscreen application written on windows c#, however i have a form that consist of button , text box,, i want user when click by his finger to the button increase the numeric value in textbox by one ,, but if keep his finger on the button it keeps increasing ,,,

Any ideas how i can do that?
Question by:Abu Hamdan
LVL 12

Accepted Solution

andrewjb earned 2000 total points
ID: 19997916
..Start a timer on the mousedown event; stop it on the mouseup event. Increment the value every timer tick...

Author Comment

by:Abu Hamdan
ID: 19998037
Thanks :)

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month20 days, 6 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question