tags:

views:

126

answers:

1

I have to "embed" an .exe within a panel in a .net windows form. I am doing this using user32.dll SetParent to set the launched app's parent to the forms Panel handle.

Once this is done, I would like to

  1. Hide the title bar of the .exe
  2. lock the exe into the panel (maximized) so it cannot be moved or closed.

Suggestions?

A: 

You can remove the titlebar from a window using the GetWindowLong and SetWindowLong(GWL_ STYLE) function to remove the WS_CAPTION style bit.

Mattias S