Search code examples
c#windowswinapireparenting

Create window as child in third party application


I'm trying to get my C# form to be parented correctly in a third party app, I have the handle to the control that I would like my form parented to but just can't seem to get it to work.

alt text http://img693.imageshack.us/img693/8871/examplec.jpg

I would like to create my form so that it is part of the MDIClient, handle 005E0ED6. Just like Window 01D7157D.

Is this possible? If so can it be done in C#?


Solution

  • How have you tried doing it? Did you try SetParent? See the following StackOverflow question to see if it helps. Embedding HWND into external process using SetParent