I never created a Method in the form, and for hence did not put the Read event in a Method, i said i added in the form Activate property , the "Read Event"
Activate is not a property of the form, It is an event, strictly speaking, and not stictly speaking methods and events of a form, including the native ones were meant by me. Activate happens multiple times and will then only execute up to the READ EVENTS line and when you activate the form more than 127 times you'd most probably get a stack overflow error, not sure, though. READ EVENTS doesn't beloing into an form method or event, including the native methods and events.
i changed to showwindow =2 and READ EVENT it is in the main.prg after DO FORM
That's fine.
As I stated several times already, I thought you had ShowWindow=2 from the beginning, as you saw something blinking. Even if you didn't, that's a major ingredient I thereby already pointed to. You wouldn't even see anything blinking with a) SCREEN=OFF and b) no ShowWindow=2 (as top level) form, a ShowWindow=0 form just runs invisible, as it's in _SCREEN and the _SCREEN is invisible. So that's weird, now. I think you have to embed the config.fpw file, i.e. include it into the compilation, to get the effect the _Screen never is visible. Just putting config.fpw side to side to an EXE makes VFP use it, too, but delayed, perhaps. That could explain the blink. But of course you don't see anything, if your main for is in screen and the screen is hidden.
You need all these ingredients for a SDI application to work: SCREEN=OFF, Top Level Form, READ EVENTS/CLEAR EVENTS. Optionally RESOURCE=OFF is a good way to prevent VFP to fail on creating the foxuser.dbf in the write protected Program Files directory or since Vista redirect this to the user profile. And the config.fpw has to be included in the EXE. An ALLOWEXTERNAL=ON allows you to later add another config.fpw from outside and apply it with the -C command line switch any VFP built EXE supports. These ingredients are all explained in the How To FAQ I already pointed to and are all demonstrated in it.
Bye, Olaf.