Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form losing focus on start
Message
 
 
À
05/09/2001 06:22:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00552392
Message ID:
00552394
Vues:
17
This message has been marked as the solution to the initial question of the thread.
Hi!

Try to use SetForegroundWindow() API function. To get HWND of the window (Windows API window handle), use FindWindow() API function. FindWindow() require to use window caption, if you afraid that window caption cold be in another window too, set caption to something unique(based on sys(3) function, for example), use FindWindow(), then set correct window caption back. Check also API section here at UT.

HTH.

>Hi
>
>I have a form that loses focus when loaded, it is run AS TOP LEVEL and is ALWAYSONTOP, but when I load it with SCREEN = OFF it loses the focus.
>
>Any ideas?
>
>Thanks
>Kev
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