hi,
how can i make a delay of some time in c sharp
sidd.
0
Light Poster
Recommended Answers
Jump to PostThread.Sleep(X);
where X = milliseconds?
Jump to PostThe above will work if you are using threads.
If you are not using a threaded application you could look at the timer class.
What does your application do, and why do you need the timer delay?
Jump to Postthen you could definitely look at the timer class.
You create a timer object and set its interval value. The interval is how many milliseconds occur between 'tick' events. You place code inside an event handler for the 'tick' events and it is processed each time the timer ticks.
You …
Jump to Posttake a look at this article. You could take this approach; move your code out of the OnPaint event and into methods you can call from your tick event.
How you do …
All 14 Replies
mikiurban
16
Junior Poster in Training
Geekitygeek
480
Nearly a Posting Virtuoso
sidd.
0
Light Poster
Geekitygeek
480
Nearly a Posting Virtuoso
sidd.
0
Light Poster
Geekitygeek
480
Nearly a Posting Virtuoso
sidd.
0
Light Poster
Geekitygeek
480
Nearly a Posting Virtuoso
Geekitygeek
480
Nearly a Posting Virtuoso
sidd.
0
Light Poster
sidd.
0
Light Poster
Geekitygeek
480
Nearly a Posting Virtuoso
sidd.
0
Light Poster
Geekitygeek
480
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.