and the pause is to do anything or not?
if the prb is just that the form layout is lock up cause the the thread.sleep then in my oppinion ur best bet is to incorporate the while statment in a method and start a background thread on that method so that way the user interface will not freeze.
>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
Alexandre Palma
Senior Application Architect