Ja det är möjligt med hjälp av SetParent API anropet. Men det är ej att rekomendera...Sv: Barnbarn
Public Declare Function SetParent Lib "user32" Alias "SetParent" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Exempel:
Option Explicit
'MDIForm1 -----------------------------
Private Sub MDIForm_Load()
Form1.Show
End Sub
'Form1 -----------------------------
Private mChild As Form2
Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Private Sub Form_Load()
Dim lReturn As Long
Set mChild = New Form2
lReturn = SetParent(mChild.hWnd, hWnd)
mChild.Show
End Sub
Private Sub Form_Unload(Cancel As Integer)
Unload mChild
Set mChild = Nothing
End Sub