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.