|
-
May 17th, 2004, 10:15 AM
#1
Thread Starter
New Member
pause method
Is there a pause function? I want to run a program and then after it runs, pause for a few minutes and then run it again.
-
May 17th, 2004, 10:45 AM
#2
PowerPoster
Hi,
You don't need a pause function. What are you going to pause for?
If you are waiting for a user response a MessageBox or a Button will suffice.
If you want to wait for a certain amount of time, then use a loop with a timer check.
If you want to pause while another application is running then there is a Thread.Sleep; Thread.Suspend and Thread.Resume, which you can see in MSDN Help under "Pausing Threads"
Last edited by taxes; May 17th, 2004 at 10:54 AM.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
May 17th, 2004, 11:04 AM
#3
Thread Starter
New Member
how do you loop with a timer?
-
May 17th, 2004, 08:11 PM
#4
PowerPoster
Hi,
The easiest way is
VB Code:
Dim dTime As Date = Date.Now.AddSeconds(10)
Do : Loop Until Date.Now > dTime
The above waits 10 seconds but you can work in minutes, hours days etc.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|