How You Can Create the Form
The form that a frame displays is an object of the FrameForm class. A FrameForm object is a special case of a subform that encloses the full set of FormField objects in a frame.
After you have created the frame source, create the frame's form and assign it to the TopForm attribute of the frame source. For example:
test_frame.TopForm = FrameForm.Create();
At this point, your form is a blank form, without fields. The next step is to create the fields.