Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to place a pause in an application

Status
Not open for further replies.

jdgreen

Technical User
Mar 21, 2001
144
US
I am trying to place a pause in some code. I have an animated gif I want to show, pause the code and then hide the clip. I would have used a loop for this in VB6, but nothing I've tried has worked in VB.Net.

John Green
 
jd,

Here's one way:

Dim a As Date
Dim b As Date
a = Date.Now
b = Date.Now.AddSeconds(5)
Do

Loop While Date.Now < b

phan
 
Try this codes.

system.threading.threads.sleep(5000)
 
lynix,

That's pretty slick. Slight correction:
System.Threading.Thread.Sleep(5000)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top