I'm stumped! Here's what happens...I click my "go" menu to create a new instance of a form (in this case an MDIChild) and populate it with the controls in a frame that is on another form in the dll I'm referencing. (toward the end of the menu's sub I add the references that obj and objWind hold to a collection for use later on....)

Code:
Public Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long

Private Sub mnugo_Click()
    Dim obj As Object
    Dim objWind As Object
    Dim tForm As frmChild
    
    Set obj = CreateObject("myProject.myClass")
    Set objWind = obj.getwindow
    Set tForm = New frmChild
    
    Call SetParent(objWind.hwnd, tForm.hwnd)
    
    mColObj.Add obj
    mColObjWind.Add objWind
    
    Set pluginwindow = Nothing
    Set plugin = Nothing
    Set tForm = Nothing
End Sub
This part works just fine...it does EXACTLY what I want it to...
But when I close the form (after having called the DestroyWindow API to remove the references to the controls in the dll) and then try to click the "go" menu again, it doesn't work. No errors occurr, but when the "SetParent" API is called, (which normally returns the hWnd of the dll form's frame via objWind.hwnd), no hWnd value is returned. The value is just 0, and the MDIChild form isn't populated with anything...

I can't figure out for the life of me why this is. If you have any ideas at all please let me know. I can post more code...and more detailed code... if you need, just say so

Thanks!