Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Activate window?
Message
 
To
23/08/2006 10:08:30
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01147895
Message ID:
01147921
Views:
27
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform