[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) As IntPtr
None.
None.
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.