How to create a form programmatically with a couple components on it in Delphi -
i'm working delphi 7 , i'm trying create form programmatically. here's form class stub: unit clststudentinfoform; interface uses forms; type tstudentinfoform = class (tform) end; implementation end. i have button on main form (that's regular form that's supposed create , show form above @ run-time) , when clicked creates , shows student form modal window. show form there's nothing on it. thing can click close button @ upper-right corner of window close it. procedure tlibraryform.btnshowstudentifoformclick(sender: tobject); var f : tstudentinfoform; begin f := tstudentinfoform.createnew(self); f.showmodal; f.free; f := nil; end; i have no idea how add components programmatically-created form (not @ run-time, source code). can me write code adds okay button student form sets caption , form's height , width (the code has written in student form file)? any suggestions , examples highly appreciate...