You haven't got a conflicting "AlwaysOnTop=.T. " on any other forms, have you?
Terry
>I'm using VFP 7.0
>
>I have an exe that opens a Top Level Form (showwindow=2), but I can't seem to get it to appear on top of all the other windows.
>
>I have a different app that works just fine, but I can't get this one to work properly, and I can't find any differenct between the 2 apps.
>I have this in both forms and call it, but it doesn't work in the 2nd app.
>
>myForm.SetFocus()
> DECLARE INTEGER SetForegroundWindow ;
> IN User32.DLL INTEGER
> SetForegroundWindow( THIS.HWND )
>
>I've even set AlwaysOnTop=.T. and it still won't go to the top.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.