G
Guest
Hi,
I'm using the following code to spawn another app from VB.NET..
Dim ShellProcess As New Process
ShellProcess.StartInfo.FileName = "xxxx.exe"
ShellProcess.StartInfo.UseShellExecute = True
ShellProcess.StartInfo.WorkingDirectory = "C:\Windows\System32"
ShellProcess.Start()
ShellProcess.WaitForInputIdle()
xxxx.exe creates a DOS window
I am unable to close it via.... ShellProcess.CloseMainWindow()
or kill it via....ShellProcess.Kill()
I know I can use API FindWindow, PostMessage etc. I'm looking for a true
..NET clean way to do this. Nothing I try works! Anybody run into this?
I'm using the following code to spawn another app from VB.NET..
Dim ShellProcess As New Process
ShellProcess.StartInfo.FileName = "xxxx.exe"
ShellProcess.StartInfo.UseShellExecute = True
ShellProcess.StartInfo.WorkingDirectory = "C:\Windows\System32"
ShellProcess.Start()
ShellProcess.WaitForInputIdle()
xxxx.exe creates a DOS window
I am unable to close it via.... ShellProcess.CloseMainWindow()
or kill it via....ShellProcess.Kill()
I know I can use API FindWindow, PostMessage etc. I'm looking for a true
..NET clean way to do this. Nothing I try works! Anybody run into this?