unmesh.takalkar@gmail.com
New member
- Joined
- Jan 7, 2013
- Messages
- 1
- Programming Experience
- 5-10
Dear Friends
I am creating a project in vs 2008, in which there are some small apps developed in vb 6.0 and vb.net.
I want to create a wrapper project which will open all the apps in my one project.
I have written this Code
Dim p As New Process
Dim proc As New Process
p.StartInfo.WindowStyle = ProcessWindowStyle.Normal
p.StartInfo.FileName = ("C:\Documents and Settings\ABC\Desktop\transitapp\prjeComply.exe")
' p.StartInfo.FileName = "notepad.exe"
p.Start() '---- Start the process
p.WaitForInputIdle() '---- Wait for the message loop to be created on this process
'---- Debug: Check for handle and window title
Debug.WriteLine(p.MainWindowHandle.ToString & ": " & p.MainWindowTitle)
'---- Use the SetParentAPI
Call SetParent(p.MainWindowHandle, Panel1.Handle)
p.StartInfo.WindowStyle = FormWindowState.Maximized
But the apps does not open in the panel1, and the vb 6.0 apps opens external to the MDI. Is there any solution for this problem.
Please Help
I am creating a project in vs 2008, in which there are some small apps developed in vb 6.0 and vb.net.
I want to create a wrapper project which will open all the apps in my one project.
I have written this Code
Dim p As New Process
Dim proc As New Process
p.StartInfo.WindowStyle = ProcessWindowStyle.Normal
p.StartInfo.FileName = ("C:\Documents and Settings\ABC\Desktop\transitapp\prjeComply.exe")
' p.StartInfo.FileName = "notepad.exe"
p.Start() '---- Start the process
p.WaitForInputIdle() '---- Wait for the message loop to be created on this process
'---- Debug: Check for handle and window title
Debug.WriteLine(p.MainWindowHandle.ToString & ": " & p.MainWindowTitle)
'---- Use the SetParentAPI
Call SetParent(p.MainWindowHandle, Panel1.Handle)
p.StartInfo.WindowStyle = FormWindowState.Maximized
But the apps does not open in the panel1, and the vb 6.0 apps opens external to the MDI. Is there any solution for this problem.
Please Help