Hi!
I have a very simple windows form (Visual Basic, .NET-Framework 2.0).
This is my whole code:
Public Class Form1
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e
As System.EventArg s) Handles Button1.Click
Dim myThread As New System.Threadin g.Thread(Addres sOf
testThread)
myThread.Start( )
End Sub
Public Sub testThread()
Dim myProcess As New Process
myProcess.Start Info.Arguments = "fd806001"
myProcess.Start Info.FileName = "D:\Tools\vncvi ewer.exe"
myProcess.Start ()
End Sub
End Class
The vncviewer.exe ist the vncviewer, provided by Ultra VNC. When I
start the Process, everything works fine and Ultra VNC launches. When
I now close Ultra VNC, my application is in background of all open
windows. When I switch to the vncviewer proveded by RealVNC,
everything works fine and after closing the Viewer, my application got
the focus back (in foreground).
Same is with notepad++ (minimizes my application) and Windows notepad
(correct behaviour).
How can that be, that when I close the process my application is
pushed in background?
Best regards,
Sebastian
I have a very simple windows form (Visual Basic, .NET-Framework 2.0).
This is my whole code:
Public Class Form1
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e
As System.EventArg s) Handles Button1.Click
Dim myThread As New System.Threadin g.Thread(Addres sOf
testThread)
myThread.Start( )
End Sub
Public Sub testThread()
Dim myProcess As New Process
myProcess.Start Info.Arguments = "fd806001"
myProcess.Start Info.FileName = "D:\Tools\vncvi ewer.exe"
myProcess.Start ()
End Sub
End Class
The vncviewer.exe ist the vncviewer, provided by Ultra VNC. When I
start the Process, everything works fine and Ultra VNC launches. When
I now close Ultra VNC, my application is in background of all open
windows. When I switch to the vncviewer proveded by RealVNC,
everything works fine and after closing the Viewer, my application got
the focus back (in foreground).
Same is with notepad++ (minimizes my application) and Windows notepad
(correct behaviour).
How can that be, that when I close the process my application is
pushed in background?
Best regards,
Sebastian
Comment