i have a c# powered windows form app and i want to run a exe inside it. that program is another seperate executable file. lets say that that exe is not a dot net app, but wr
You can do this by PInvoking SetParent():
[DllImport("user32.dll")]
static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
First you need to start the third party application within your application:
var clientApplication = Process.Start("PATH_TO_YOUR_EXECUTABLE");
then set its MainWindowHandle to your main window handle:
SetParent(clientApplication.MainWindowHandle, YourMainWindowOrAContainerControl.Handle);