form1 = createForm(nil) form1.Caption = 'it works, you see ?' form1.show()