Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top level form does not get the focus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00627628
Message ID:
00628143
Vues:
19
>>Paste this into the init method of your form and it will receive focus :-
>>
>>declare integer FindWindow in USER32.dll integer, string
>>declare integer SetForegroundWindow in User32.dll Integer
>>WindowTitle=chr(34)+alltrim(thisform.caption)+chr(34)
>>winHandle = FindWindow(0,&WindowTitle)
>>if winHandle > 0
>> SetForegroundWindow(winHandle)
>>endif
>>
>>Regards
>
>Steve,
>
>I don't have this problem. Besides, in VFP 7.0, I could just use the hWnd property, instead of FindWindow.

VFP 7 has hWnd? I have a copy but have not installed it.
Is their an hWnd for each all controls? Labels, ActiveX, etc?
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform