Create a formset. add a form form2.visible = .f. form1.visible = .t. form1.titlebar = 0 form2.titlebar = 0 formset.windowtype = 1 && needed otherwise there will be no read events. the formset will just splash and disappear formset.load() on shutdown quit add a button on form1 form1.cmd1.click() thisformset.releaseBuild the form into a exe