di dalam DLL, gunakan perintah API : SetParent formasal.hwnd,formtujuan.hwnd
 
dimana hwnd adalah handle form tersebut
 
passing MDI.hwnd menjadi formtujuan.hwnd ke dalam DLL
 
contoh di DLL :
 
Public Sub ShowBackup()
    SetParent FrmBackup.hwnd, myHwndParentForm
    With FrmBackup
        .Move 0, 0
        .Show
    End With
End Sub
 
 
Contoh panggilan form di MDIMenu :
 
dim FrmDLL as New DLLObject
set FrmDLL = new DLLObject
 
With FrmDLL
    .TargetHwnd=MDIMenu.Hwnd
    .ShowBackup
End With


[Non-text portions of this message have been removed]

Kirim email ke