PRIVATE llStrartApp DO Form SetUp IF llSTartApp READ EVENTS ENDIF * Your clean up code hereIn the Init of your setup form, if you want the app started then set llStartApp to .T. otherwise leave it at .F. To kill the stup form simply return .F. from the Init.