Windows forms and mixiing unmanaged C with managed C++ and windows handles

S

Steve Marsden

Hi

I want to specify the parent of a windows form to be a window handle I have
elsewhere in my project which is an unmanaged WIN32 handle. How can I do
this?

If I simple say myform->Parent=mainwnd (where mainwnd is a WIN32 handle) I
obviously get the error Cannort convert from HWND to
System::Windows::Forms::Control

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top