Jump to content

Need simple Timer to pause app for a few sec.


Guest deBruineBeren

Recommended Posts

Guest deBruineBeren

Dear all,

I want to pause my program for a few seconds, and then continue.

I have found some pieces of code but somehow they do not seem to work.

I get errors al over the place.

Somehow one namespace imports seems to bite an other.

I don’t know, I'm lost. :oops:

I would like to place the code in a separate class so I can call it when I would like to pause the program.

Does somebody have a simple piece of code that even I can use ?

Thanks in advance.

Alex.

Link to comment
Share on other sites

Guest deBruineBeren

It looks like I found the perfect one:

Imports System.Threading
And then use some where in the program
System.Threading.Thread.Sleep(2000)

This will pause the program for 2000 millisecond ;)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.