Microsoft KB Archive/138497

= How to Create a Startup Screen in Visual FoxPro =

Article ID: 138497

Article Last Modified on 10/15/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b for Macintosh

-



This article was previously published under Q138497



SUMMARY
Many Windows-based applications display a startup screen or splash screen during the initialization phase of the application. This startup screen provides a means of displaying information such as product name, product logo, product version information, company name, and so on. In addition, it gives the user the perception of quicker application startup time.

This article gives the steps for creating a custom application startup screen that will display for a specified interval of time during application initialization. This form will not supress the FoxPro system menu or the FoxPro title bar when run within an executable file.



Step-by-Step Procedure for Creating a Custom Startup Screen
You can use the Visual FoxPro Forms Designer to create the custom application startup screen.

 Create a new form.  Set the following properties of the form: AutoCenter=.T.  BorderStyle=1 Caption= Closable=.F.  ControlBox=.F.   MaxButton=.F.   MinButton=.F.   Movable=.F.   WindowType=1  Add a timer control to the form. Set the timer's Interval property to the length of time (in milliseconds) that the startup screen should display. For example, if the startup screen should display for 3 seconds, set the timer's Interval property to 3000.  Place the following code in the timer's Timer event: ThisForm.Release  Add image, label, and other controls to customize the form as needed.</li> Save and run the form.</li></ol>

The form should display for the amount of time specified in the timer's Interval property and then disappear.

To incorporate this startup screen into an application, add the following code to the beginning of the applications main program:

DO FORM Now when the application is run, the startup screen should display for the amount of time specified in the timer's Interval property.

Additional query words: VFoxMac VFoxWin

Keywords: KB138497

-

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

© Microsoft Corporation. All rights reserved.