S
sewid
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(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Dim myThread As New System.Threading.Thread(AddressOf
testThread)
myThread.Start()
End Sub
Public Sub testThread()
Dim myProcess As New Process
myProcess.StartInfo.Arguments = "fd806001"
myProcess.StartInfo.FileName = "D:\Tools\vncviewer.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(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Dim myThread As New System.Threading.Thread(AddressOf
testThread)
myThread.Start()
End Sub
Public Sub testThread()
Dim myProcess As New Process
myProcess.StartInfo.Arguments = "fd806001"
myProcess.StartInfo.FileName = "D:\Tools\vncviewer.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