Button click event keep executing while clicked

Posted on 2007-10-02
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

    ..Start a timer on the mousedown event; stop it on the mouseup event. Increment the value every timer tick...
    LVL 7

    Author Comment

    by:Abu Hamdan
    Thanks :)

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    This video discusses moving either the default database or any database to a new volume.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    732 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now