Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting Focus to Top Level Form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00546077
Message ID:
00546088
Vues:
17
Hi!

You can change the form caption temporarily for the moment before the FindWindow() call to something unique based on the sys(3) function value, then restore it back:

lcOldCaption = oMyForm.Caption
lcTempCaption = lcOldCaption + sys(3)
oMyForm.Caption = lcTempCaption
&& call FindWindow() here ...
oMyForm.Caption = lcOldCaption

BTW, in VFP7 form class have the HWND property that you can use instead of finding it.

HTH.

>Thanks Guys! Vlad - the only trouble is I change the top level form caption to reflect which screen the user is on - can I specify something like lcMyApp = "My Application - *" I know that won't work but you get my drift?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform