Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss. print.

I decided to write this simple FAQ about creating splash screens, I noticed that this seems to be one of the questions that keeps been asked, so here we go:-

I will show two ways of creating splash screens,

1) Very Simple Splash screen called from a start up program:
2) Splash screen called from a class

Let’s create the simple version first:
First create your project – so in this first example we call this EX1
now add your first file under the Other\Text files section:

Now save that file as ‘Config.fpw’

Next step is to create the start up program; in this case I called it EX1Start.prg
This program contains the following lines:

DO FORM frmEX1Splash
*-- Your Code goes here...

Next step is to create the Splash Screen, so create a new form, and set the following properties:

TitleBar = 0 && Off
ShowWindow = 2 && As Top Level Form

You could set the BorderStyle and AutoCenter Properties here, but I choose to do this in the Init method, the main reason I set the BorderStyle here is that if you change it in the properties dialog say to any other value than 3, you can no longer resize it in the design mode.

So in the Init Method add the following:

     .AutoCenter = .T.
     .BorderStyle= 2 && Fixed Dialog

In the Forms Unload Method you need to add the following:


So now you need to add a timer to the form, and then set the following properties:

Interval = 3000  && More if you want it to stay longer

In the Timer Event, simply add:


So you should have a simple splash screen like so:

Now look at the Ex1 code and sample.

For a fancier splash screen and a different way to run one look at the example code in EX2, also the Version of the EXE is used on this Splash Screen.


Simon Arnold Simon has worked with FoxPro for over 16 years. He currently works for a company based in Harrogate, North Yorkshire (UK), which specialises in FoxPro, Web and Unix development.
He has a weblog at http://weblogs.foxite.com/simonarnold.


julienne @ 4/18/2008 10:39:11 AM
i tried to follow your intructions in creating a splash...but instead i am unable to quit the vfp

Raul Franco @ 12/9/2008 10:33:35 AM
Thanks for the info...I tried what you said and its all good...thank you very much...

HILALY @ 4/9/2009 6:53:13 PM

Fred @ 6/10/2010 3:16:40 PM
Works great. I added a thisform.release() in the click event of the form in case user is very impatient.

Enday Enday @ 8/10/2010 11:18:39 AM
Thank you for your advise

dr.p.rana @ 4/24/2017 1:09:28 PM
very nice
want something more regarding vfp5 projects
pl. help me to convert my softwares to .net

Your Name: 
Your Feedback: 

Spam Protection:
Enter the code shown: