title: How to bring to front window in vb.NET
body: <p>I have an application that runs in the background and on command shows windows applications to the user.</p>
  
  <p>My problem is that I can't get the windows to be on the front and on top of ALL the other windows (Browser(Usually) , other applications etc)</p>
  
  <p>I used <code>TopMost=True</code>, <code>BringToFront()</code>, <code>Form.Activate()</code>, <code>Form.ShowDialog()</code> etc and it still not working for me.</p>
  
  <p>I managed to get it in front of all other app but only at the first window.
  EX:
  I run the app in the background, and the first window is shown on top of all the others.(The windows basically shown on top only after reset) 
  The user finished with this window and closes it. After a while a second window is supposed to be shown on top of all but its not at the top of all.</p>
  
  <p>What else can I try?
  Do you have an idea of what can "block" my application so its not on top? </p>
  
  <pre><code>      Public Function ChooseDir() As String        
        Dim sRes As String = ""
  
          Using folders As frmFolderBrowser = New frmFolderBrowser()
              folders.ShowDialog()
              sRes = folders.StrPathValue
          End Using
        ChooseDir = sRes
  
        End Function
  
  
  
      Private Sub frmFolderBrowser_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load        
      If DialogResult.OK = FolderBrowserDialog.ShowDialog() Then
          strPath = FolderBrowserDialog.SelectedPath
      End If
      Me.Close()
  
  End Sub
  </code></pre>