Sample code for tgForms