Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple Run Prevention
Message
 
To
06/06/2001 13:40:20
Bill Gravell
Indoor Purification System
Menifee, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00515926
Message ID:
00515936
Views:
15
Here is what we do:



lcCaption = "Your Program Caption Here"
Local lnHWND
Declare INTEGER BringWindowToTop IN Win32APi INTEGER
Declare INTEGER FindWindow IN Win32Api INTEGER, STRING
lnHWND = FindWindow(0, lcCaption)
If lnHWND <> 0
BringWindowToTop(lnHWND)
Return
Endif
_SCREEN.CAPTION = lcCaption




This has worked well, it even brings the application to the front if its already openned.

I'm pretty sure I got this code segment from UT files section.

Hope it helps,
Bryan Smith
Previous
Reply
Map
View

Click here to load this message in the networking platform