Steve36445
Well-known member
- Joined
- Dec 23, 2007
- Messages
- 58
- Programming Experience
- 10+
Can you help me please?
I am trying to launch one program (written by me) from another. I have done it before and it worked fine, but not now.
The program runs and seems to have the focus* but it is not displayed.
* It appears on the task bar and is highlighted. If I press alt + tab TWICE the form is displayed.
To trouble shoot I have written two simple apps.
The launcher
The path is correct and I have tried the target file in both the debug and publish directories as well as in the route dirctory of the launching program.
And the Target (loading_test.exe) program-just a blank form.
If I double click on the target .exe file it works fine.
Any advice would be welcome.
Thanks,
Steve
I am trying to launch one program (written by me) from another. I have done it before and it worked fine, but not now.
The program runs and seems to have the focus* but it is not displayed.
* It appears on the task bar and is highlighted. If I press alt + tab TWICE the form is displayed.
To trouble shoot I have written two simple apps.
The launcher
VB.NET:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Shell("C:\Documents and Settings\steve\My Documents\vb\2008\tests\loading_test\loading_test\bin\Release\loading_test.exe")
End Sub
End Class
And the Target (loading_test.exe) program-just a blank form.
If I double click on the target .exe file it works fine.
Any advice would be welcome.
Thanks,
Steve