Michel, what happens if you just place something like:
Activate window (main.name) top
or simply...
main.show()
right before the read events?
>>>I have a top level form that is called from a PRG. When that form is called,
>>>it doesn't get the focus. This is how I call it:
>>
>>PUBLIC oApp,oFtp
>>oApp=CREATEOBJECT('MASTER')
>>DO FORM FTP NAME Main
>>READ EVENTS
>>QUIT
>>
>>Michel, did you look at mskb #
Q178117 PRB: Application Loses Focus or Opens Minimized on Startup?
>
>That knowledge base relates to the behavior of having Application.Visible = .F. in the Init() of the form. I don't have anything like that in my form. What is frustrating is that I didn't have any problem with VFP 6. Since I have updated to VFP 7, I have that for several applications.