getFormParent(): Form;
The getFormParent method of the Form class returns the parent of the form that was set by using the setFormParent method or if the parent form was set directly by using a Windows API call.
As the getFormParent method does not return the MDI frame for an MDI child, use the getMdiFrame method if you want to return the MDI frame for an MDI child.