Juliano,
How a file is opened is defined in Folder Options\File Types\Edit File Type\Action. If you want the file to open in the same instance, you have to specify the following parameters in the Edit action dialog:
[x] Use DDE
DDE Message: Open("%1")
Application: FoxPro
Topic: System
The easiest way to define these settings for all VFP file types is to run the following form that ships with VFP7:
DO Form (HOME()+"\Samples\Solution\Winapi\Shellopen.scx")
See also
Set VFP Shell Open Commands in the VFP help.
HTH
>Every time I double-click any VFP file (.prg, .dbf...)in a Windows Explorer window a new instance of VFP is loaded...
>Does someone know what to do to a double-clicked file be openned in an already loaded window of VFP 7 ???
>
>Thanks...
Daniel