Microsoft KB Archive/320126

= FIX: Visual FoxPro 7.0 Behaves as if _Screen.AlwaysOnTop Is Set to True =

Article ID: 320126

Article Last Modified on 5/13/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 7.0 Professional Edition

-



This article was previously published under Q320126



SYMPTOMS
When you run a Visual FoxPro 7.0 runtime executable or you use Visual FoxPro in development mode, the Visual FoxPro executable sometimes remains on top of any other Windows application. Visual FoxPro behaves as if the AlwaysOnTop property is set to true.



RESOLUTION
To resolve this problem, obtain the latest service pack for Visual FoxPro for Windows 7.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

316964 How to Obtain the Latest Visual FoxPro for Windows 7.0 Service Pack



STATUS
Microsoft has confirmed that this is a problem in Microsoft Visual FoxPro for Windows 7.0.

This problem was first corrected in Visual FoxPro for Windows 7.0 Service Pack 1.



MORE INFORMATION
  Paste the following code in a program (.prg) file, and then run the program from the Command window: DELETE FILE testxx.pjx CREATE PROJECT testxx NOWAIT DELETE FILE testxx.prg

TEXT TO lcVar NOSHOW lcScript = &quot;_screen.AlwaysOnTop = .t.&quot;+CHR(13)+ ; CHR(10)+ &quot;_Screen.AlwaysOnTop = .f.&quot; ON KEY LABEL f5 EXECSCRIPT(lcScript) ON SHUTDOWN QUIT _SCREEN.WINDOWSTATE = 0 _SCREEN.VISIBLE = .T.  READ EVENTS ENDTEXT STRTOFILE(lcVar,'testxx.prg',0) _vfp.ActiveProject.files.add('testxx.prg') ?_vfp.ActiveProject.Build('testxx.exe') _vfp.ActiveProject.close RETURN  In Windows Explorer, double-click the folder that contains Testxx.exe, right-click Testxx.exe, and then click Create Shortcut. Right-click the Textxx.exe shortcut, click Properties, and then from the Run drop-down list box, click either Maximized or Minimized. Click OK. Double-click the Testxx.exe shortcut to run the executable. Open another Windows application, and note that the Visual FoxPro executable remains on top.</ol>

Keywords: kbbug kbfix kbvfp700sp1fix kbcodesnippet kbctrl KB320126

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.