I am starting a new process using the following code:
Dim procStartInfo As New ProcessStartInfo
Dim procExecuting As New Process
With procStartInfo
.FileName = "C:\PTL\Bin\xxxxxx.exe"
.WindowStyle = ProcessWindowStyle.Normal
.Arguments = "/POLL:5"
End With
procExecuting = Process.Start(procStartInfo)
But when this is called the application I am calling it from loses focus (even if the window style is set to Hidden), so if I am typing in a text box on the form key presses are effectively lost because they are redirected to the new app.
Is there some way that I can start a process and keep the focus?