[DllImport("user32.dll")] public static extern int SetParent(int hWndChild, int hWndNewParent); public void SetFormInForm(int newFormPtr, int formPtr) { int old = SetParent(newFormPtr, formPtr); }