The project we are working on is designed using an "add-in" metaphor. We have a very light-weight MDI front end for this project. One thing we want to do is be able to store MDI Child forms in an ActiveX DLL and then reference them doing something like this:
Dim frmForm as Form
Set frmForm = <ActiveX DLL Reference>.GetSearchDialog
However, this generates a VB Runtime Error 366: Unable to load MDI Form. We are assuming this means that the MDIChild form does not have a way of knowing who its parent would be. We have tried using the SetParent API call for this, but we need to get the hWnd property of the MDIChild. Accessing any property of the MDIChild causes this error to occur.