Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting focus to a top-level form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00146913
Message ID:
00147086
Vues:
34
>>How do have a form receive the focus when running it as a top-level form? In my stub .prg I'm setting _screen.visible to .f., running the form and doing a READ EVENTS. But the form is not the active form on the desktop when it appears. How do I make this happen?
>>
>>TIA
>
>Put a textbox control on it. Have it's .Left property at some large negative number so it is not visible and .SetFocus to it. I do this so the top-level form exists which will then check to see if it needs to resize or not.

Also, depending on what you're doing, issuing a Show will activate it, which is a form's version of setfocus...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform