>How me I detect when the applications is running; when some user trying to run it once.
Take a look at George Tasker's article "Create Single Instance Applications", FoxPro Advisor, November, 1998; you can download paul-Vlad Tatavu's single instance class from here on UT as File #
653 (in Classes/VCX).