Skip to content

Load External Program (.exe) and Contain Within Form

cmarini

Asked Feb 26, 2008, 9:10 AM EST1 answer
Share
LinkedInX
I am trying to figure out how to take an existing application, such as Notepad or Wordpad, and have my C# program open it while containing it within the form.  This would mean Notepad or whatever program is loaded by Process.Start or some other means, but exists only within the C# program and does not appear in the windows taskbar.

If anybody could help out that would be greatly appreciated.  Thanks.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    I have done a similar thing in the past with winword, by memory(not that good) spawning notepad from your app using CrateWindowProcessEx( ... )  then setting its HwndParent to your forms handle should do the trick
    0