Embedding window in window
-
I'm working on a WinForms app and need to embed an instance of MS Excel in a WinForm window. We did this in VB6, but it's quirky because we don't know Win32 API programming very well. I've got a sample of this, but don't see a way to post it along with this message. If I get a good solution to the problem, I'd like post an article on the topic for all to use. Can anyone offer help with this?
-
I'm working on a WinForms app and need to embed an instance of MS Excel in a WinForm window. We did this in VB6, but it's quirky because we don't know Win32 API programming very well. I've got a sample of this, but don't see a way to post it along with this message. If I get a good solution to the problem, I'd like post an article on the topic for all to use. Can anyone offer help with this?
Wrap the API call to SetParent and pass it the handle to the window you want to act as a parent ...
HWND SetParent( HWND hWndChild, HWND hWndNewParent );
This function exists in User32.dll D.