Hello,
I would like to open VB .NET application from other VB .NET application by clicking form button.
This is the code that I use:
After clicking the button, "My Application" start form opens, but it has very limited functionality – some forms inside the application can’t be opened.Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If IO.File.Exists("c:\Documents and Settings\User\My Documents\Visual Studio 2005\Projects\My Application\My Application\bin\Debug\My Application.exe") Then System.Diagnostics.Process.Start("c:\Documents and Settings\User\My Documents\Visual Studio 2005\Projects\My Application\My Application\bin\Debug\My Application.exe") Else MsgBox("My Application.exe file was not found") End If End Sub
If I open My Application.exe in a normal way (through Windows Explorer), it works fine.
May be I am using wrong command to open application?




Reply With Quote