Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiled Application runs sometimes on bottom
Message
From
22/12/1999 15:58:33
 
 
To
22/12/1999 13:50:01
Antonio Gubaira
Ingenieria Y Sistemas
Valencia, Venezuela
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00307441
Message ID:
00307544
Views:
10
>Hi,
>
>My compiled application when run from the windows desktop sometimes hide below an existing window of some other opened application. This is not true for all cases. I am using a "Top Level Form" as the main form that contains the bar menu. Properties "Always on Top" and "Always on Bottom" are set to FALSE.
>
>How can I solve this issue ?

You may need to use the ShowWindow() API call to force the Window to the top:

DECLARE INTEGER GetActiveWindow IN WIN32API
DECLARE INTEGER ShowWindow IN WIN32API INTEGER hWnd, INTEGER nCmdShow
=ShowWindow(GetActiveWindow(),5)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform