Colin,
Try something like the following:
SET LIBRARY TO FoxTools ADDITIVE
lnHWnd = MainHwnd()
ShowWindow(lnHWnd, 3)
PROCEDURE ShowWindow
LPARAMETER tnHwnd, tnMode
#DEFINE cnNormal 1
#DEFINE cnMinimized 2
#DEFINE cnMaximized 3
IF TYPE("tnMode") <> "N" OR NOT INLIST(tnMode, cnNormal, cnMinimized, cnMaximized)
tnMode = cnNormal
ENDIF
DECLARE INTEGER ShowWindow IN WIN32API integer, integer
=ShowWindow(tnHwnd, tnMode)
HTH
>i intend to write a little app thats purpose will be to sit in the background on 1 pc and monitor one foxpro table in an accounting system for new entry's. it will check the entry for validity.
>
>i intend to have this app run minimised and what i would like to have it do is pop itself up over anything else running in order that the user can be warned of an exception situation.
>
>i can do all of this except the bringing itself to the front of other apps.
>
>anyone got any clues --- a windows api call i expect ?
>
>regards
>
>colin burton
Daniel