title: PowerShell Studio WebBrowser ProgressBarOverlay
body: <p>I'm creating a web browser in PowerShell Studio, which works with no issues. I'm trying to use a loading bar when using the search functionality, but it has been to no avail. Below is what my browser looks like. The ideas is to only show the loading bar (using the marquee animation) only while it's loading. <a href="https://i.stack.imgur.com/MpMOo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MpMOo.png" alt="enter image description here"></a></p>
  
  <p>This is what I currently have for the loading functionality:</p>
  
  <pre><code>$Search_Click={
      #TODO: Place custom script here
      $url = $txtSearch.Text
      $webbrowser1.Navigate($url)
  
      while ($webbrowser1.IsBusy)
      {
          $loadingBar.MarqueeAnimationSpeed(50)
          $loadingBar.Visible = $true
      }
  }
  </code></pre>
  
  <p>Below is how I have the loading bar setup in the designer. 
  <a href="https://i.stack.imgur.com/e3qCI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e3qCI.png" alt="enter image description here"></a></p>