I tried setting the focus to one of my controls as you suggested but it didn't result in the desired effect. The form itself did not acquire the focus as expected. The desktop itself still has the focus.
>Hi Mark.
>Try in form1.Init
> Thisform.Control1.Setfocus()
>
>**Where control1 is one of your controls
>
>
>>VFP 6.0. I am setting my form "As Top Level Form" and am hiding the
>>fox background with application.visible = .f.. When I compile and run
>>as an executable the form is displayed ok, but the desktop has
>>the focus. The user must first click somewhere in the form to
>>use it. Any ideas?
"The most beautiful experience we can have is the mysterious ; it is the fundamental emotion which stands at the cradle of true art and true science." - Albert Einstein