Microsoft KB Archive/142940

= How to gain access to the View menu pad in an .exe file =

Article ID: 142940

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Professional Edition
 * Microsoft Visual FoxPro 3.0b Professional Edition
 * Microsoft Visual FoxPro 6.0 Professional Edition
 * Microsoft Visual FoxPro 7.0 Professional Edition
 * Microsoft Visual FoxPro 8.0 Professional Edition
 * Microsoft Visual FoxPro 9.0 Professional Edition

-



This article was previously published under Q142940



SUMMARY
When the Report Designer is open, the View menu allows interactive access to the Data Environment, the Color Palette toolbar, and the Report Controls toolbar. By default, this menu is not displayed when you modify a report in a Visual FoxPro executable (.exe file). It is however available. This article shows by example how to display the View menu when you modify a report.



MORE INFORMATION
The following sample program adds the View menu to the Visual FoxPro system menu. Use these steps to run this program in an .exe file.

  Copy the following code into a program file (.prg): DEFINE PAD _msm_view OF _MSYSMENU after _MSM_edit PROMPT "\ Create a project. Add the program to the project by following these steps:

 Select the Code tab. Click Programs. Click the Add button. Add the program, and then click OK.</li></ol> </li> Build the .exe file by clicking Build and selecting Build Executable.</li> Quit Visual FoxPro.</li> In the File Manager or the Windows Explorer, double-click the file you just created. Visual FoxPro starts and the report designer opens. The View menu is available.</li></ol>

This technique ensures that the design toolbars are available even if users close them during a session.

Additional query words: 3.00 3.00b VFoxWin

Keywords: kbcode KB142940

-

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

© Microsoft Corporation. All rights reserved.