Hi Sanjib,
You have expressed your problem perfectly. And there is a solution. But unfortunately it might take a lot more than a forum post to explain it.
Let's start by taking the simplest case. Let's suppose you only have one "main" form in your system. That form might invoke other forms, but let's leave that to one side for the moment. Essentially, what you need to do is to create an executable program (an EXE file) that you can run straight from the Windows desktop. The program will load the form, wait while you interact with it, and then when you are ready to close the form, the program will terminate.
The first thing you need to do is to create a program (a PRG file) that will invoke the form. The program issues a DO FORM command (look it up in the Help) and then a READ EVENTS command.
In your form, you need a way to tell the system that you want to quit. Let's say you have a Quit button in that form. In the Click event of the button, execute CLEAR EVENTS.
OK, you now have the components in place. The next step is to tie them together. To do that, create a project (with MODIFY PROJECT). Add your PRG and your form to the project. (Again ,refer to the Help for details.) The PRG will appear in the Code tab. Right click on it and make sure that Set Main is ticked.
Next, you will build the executable. In the project manager, click the Build button, and select "Win 32 Executable / COM Server", then click OK. You will be prompted for a filename for your executable. Once you have entered that, VFP will create the executable program (the EXE file).
You can now run the executable directly from Windows by double-clicking on it. And you can create a desktop shortcut for it in the usual way.
The above explanation is very much a simplification. There are other details that you will need to address. But I hope this will at least give you a flavour of how to go about it.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads