Which line of code doesn't work as you expect it to? You may also consider using _SCREEN forms collection as shown in Re: How to use _SCREEN Message #734199
>I have been using the following code for years, but VFP8 ignores it and will not bring the requested form to the top >Any ideas ?
>IFWEXIST(MForm) && Just in case
> SHOWWINDOW (MForm) TOP&& Make it the Active Form
> _SCREEN.ActiveForm.WindowState = 0&& Make it NOT minimised (Normal)
> _SCREEN.ActiveForm.Refresh
>ELSE
> DOFORM (MForm) NAME (MForm)
>ENDIF