[DllImport("user32.dll")]
static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
Declare Auto Function SetParent Lib "user32" (ByVal hWndChild As IntPtr, ByVal hWndNewParent As IntPtr)
None.
Use with FindWindow/FindWindowEx to find the window you wish to place in the form as a child.
Use this to create forms and then place child windows on it.
SetParent(FindWindow(vbnullstring,"notepad.exe"),me.handle)
MDIParent and MDIChild do work for interforms.