I am trying to host an VFP application (MDI application withing the _screen) in .NET.
What am I doing wrong below? When I run this and step into the Process.Start method, everything works fine. However, when I run the code without a break-point, the VFP Application is not hosted.
A second question is: What would be the best practice in managing the process? In other words: I would like the hosted application to terminate when the .NET app is exited. Currently, unless I close the VFP app 1st, it is left in the running process collection (task manager).
loStart.WindowStyle = Diagnostics.ProcessWindowStyle.Normal
loStart.WorkingDirectory = AppPath
SetParent(lnHandle,