Pause execution and run until form is clicked

Posted by jimmy on Stack Overflow See other posts from Stack Overflow or by jimmy
Published on 2010-05-24T18:07:52Z Indexed on 2010/05/24 18:11 UTC
Read the original article Hit count: 177

Filed under:

Newbie here. I have this code:

while (v < 360)
{
    v +=10;
    RunIt();
    // need to wait half a second here
}

How do I wait the 1/2 second? Also, if this isn't asking too much, I'd like this to run repeatedly until the user clicks on the form. Thanks in advance.

© Stack Overflow or respective owner

Related posts about c#