B
Brian Reed
I am trying to set the owner of my modeless dialog from an HWND that I have
to the main form. I tried creating an IntPtr and then calling
Form.FromHandle(), but that returned a null control.
Here is my code:
IntPtr ipFw = new IntPtr(m_pFramework.GetMainWindow());
SWF.Control ctrl = SWF.Form.FromHandle(ipFw); // Control comes back as
NULL.
SWF.Form frmParent = (SWF.Form)ctrl;
Any thoughts?
Thanks, Brian
to the main form. I tried creating an IntPtr and then calling
Form.FromHandle(), but that returned a null control.
Here is my code:
IntPtr ipFw = new IntPtr(m_pFramework.GetMainWindow());
SWF.Control ctrl = SWF.Form.FromHandle(ipFw); // Control comes back as
NULL.
SWF.Form frmParent = (SWF.Form)ctrl;
Any thoughts?
Thanks, Brian