Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Activate window?
Message
 
À
23/08/2006 10:08:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01147895
Message ID:
01147921
Vues:
28
You migh try making the form name public so it can be referenced from anywhere in your project.

Sometimes adding a "hidden", but not disabled, textboxes to forms (you can hide them behind some other control). When the project needs to activate a form that does not have focus, a click event is forwarded to the control - which usually activates it's parent form.

Setting focus to the hidden textbox (or a hidden button) and issuing a KEYBOARD command is anther method to fire the parents activate event.

>Hi,
>I use Winsock control. when my application got message from remote computer - the main window must appears in Windows as foreground window (like ALT-TAB switch)
>
>SwitchToThisWindow(_screen.HWnd,1)
>SetForegroundWindow(_screen.HWnd)
>SetFocusAPI(_screen.HWnd)
>
>Not help for me ;(
>
>Any idea
>Thanks
>Denis
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform