title: Wait for Process
body: <p>In my application in VB.NET, I have started an application and introduced a wait delay of 20 seconds. But for loading the second application, the time is varying. Is it possible to have a do while loop, similar to the structure as shown below:</p>
  
  <pre><code>Start the application1
  do {
      sleep(2seconds)
  }until(Application1 Window is loaded
  </code></pre>