borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Regarding FlexGrid)Next Topic (can not used if in function) New Topic New Poll Post Reply
AndreaVB Forum : Database : DELAY FUNCTION
Poster Message
mique17
Level: Graduate

Registered: 24-05-2006
Posts: 12

icon DELAY FUNCTION

good day., how can i make a dalay function that acts like delay() funtion in TC., can you pls provide me a simple code for that., i will really appreciate your help., thanks.,

____________________________
The things you don't like in me are the things that made me true, for those things are natural in me, so its better if you hate for who i am than you'll like me for who i pretend to be.,^_^

29-05-2006 at 02:07 AM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: DELAY FUNCTION

Hi,
I seem to remember that Delay causes the current thread to pause, if so, you could use the Sleep api call.
Add the following to the top of your module/form/class:
Private Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long)

Then use the following to call it:
Sleep 30000


Hope this helps,
Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

29-05-2006 at 11:29 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Database : DELAY FUNCTION
Previous Topic (Regarding FlexGrid)Next Topic (can not used if in function) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder