Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pause an application
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01164717
Message ID:
01165068
Views:
15
Patrice,
I agree with Alexandre. Check out the BackgroundWorker. It is a new gizmo in .NET 2.0. It is very usefull and easy to use. Just drop it on your form and add code similar to this to the DoWork event:
    While (1)
         ExecuteQuery1()

         Thread.Sleep(1000)';

         ExecuteQuery2()

         Thread.Sleep(1000)';

         ExecuteQuery....
    End While
Notice that I have to qualify the semi-colon in VB :)

>Thanks for your answer.
>
>I'll try to explain more my problem.
>
>I a several database query to execute and I want to pause between each query. Like that, I give a pause to the processor.
>
>EX :
>
>
>Private Sub Main
>    While (1)
>         ExecuteQuery1()
>
>         Pause
>
>         ExecuteQuery2()
>
>         Pause
>
>         ExecuteQuery....
>    End While
>End Sub
>
>
>I hope that can help to understand the problem.
>thx
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform