Local lnHWND
lnHWND = _screen.hwnd
DECLARE Long BringWindowToTop in Win32API Long
DECLARE Long ShowWindow in Win32API Long, Long
IF m.lnHWND >0
BringWindowToTop(m.lnHWND)
ShowWindow(m.lnHWND,3) &&SW_MAXIMIZE 3
ENDIF
*!* IF you are using an earlier version of VFP you
*!* can use FindWindow to get the handle to the _screen
*!* Local lcTitle
*!* lcTitle = _screen.Caption
*!* DECLARE Long FindWindow in Win32API String, String
*!* lnHWND = FindWindow(null,m.lcTitle)
Slighthaze = NULL
[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]