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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delay process

Status
Not open for further replies.

sisan

Programmer
Jan 9, 2002
39
0
0
ID
Hi..

In my app, I put a splash screen after user login succeeded and before mdiform shown. Some procedures run while the splash screen shown, but I think it's too fast to shown. I want it can be a longer time seen.

So, is there a command in VB to delay the time for a seconds? For a reason I do not want to use Timer control nor looping procedure like For..Next 10000 X

Any helps will be appreciated.

Thank you.
 
hi sisan,

i'm not quite clear of the reason why you don't want to use the timer control. In my opinion, it should work fine in your splash screen. Just remember that the timer control is counted in miliseconds. Which means that in order for the timer to be set to a delay of, say 3 seconds, you should set the timer value to 3000.

e.g
timer1.interval = 3000

hope it helps.
 
Add that in a module
Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Then in your code just say
sleep 1000
and it wait 1 second

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top