>I have made a simple one form program. When i compile and run it as an .EXE
>the form will display but it is not focused as the current application. I
>have to click in the form with the mouse to set focus to that form before i
>can type into it. I have tried different things (like formname.show()) but I
>can't get it to focus when starting up. Funny thing is that it works fine
>inside VFP.
I think George has given you the correct way to fix this, but is it the problem in MSKB#
Q178117 PRB: Application Loses Focus or Opens Minimized on Startup?