Microsoft KB Archive/155318

= How To Hide a Form at Startup Using the DO FORM Command =

Article ID: 155318

Article Last Modified on 6/30/2004

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q155318



SUMMARY
The Visual FoxPro 5.0 DO FORM command now has a NOSHOW clause, which specifies that the Show method of the form is not called when the form is run. When you include NOSHOW and run the form, the form is not visible until you set the Visible property to true (.T.) or call the Show method.



MORE INFORMATION
The NOSHOW clause allows you to manipulate an .scx form before it appears on the screen. To do this, insert code between the DO FORM and the .Show or .Visible commands. In the example below, the form's caption is set to "Test" and the form is centered before it appears. Type the following example into a program file or type each line into the Command window: DO FORM NOSHOW .AutoCenter=.T.  .Caption ="Test" .Show

Keywords: kbhowto kbdesigner KB155318

-

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

© Microsoft Corporation. All rights reserved.