I have an application that runs in the background and on command shows windows applications to the user.
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)
I used TopMost=True
, BringToFront()
, Form.Activate()
, Form.ShowDialog()
etc and it still not working for me.
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.
What else can I try? Do you have an idea of what can "block" my application so its not on top?
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