Hi mithani,
Not an easy task, but here's a start from Help.
CreateControl, CreateReportControl Methods Example
The following example first creates a new form based on an Orders table. It then uses the CreateControl method to create a text box control and an attached label control on the form...