General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only