Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Desktop has focus instead of main form upon start of app
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00170479
Message ID:
00170815
Views:
31
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
Previous
Reply
Map
View

Click here to load this message in the networking platform