Splash Screens can be a bit of a pain and there were several ways show on the old forum. This has been the easiest way that I've found and has the fewest steps.
- Create your main window. You may leave it visible and the Default Window from the App.
- Create your Splash Window (WinSplash for this example). Keep it visible but you may want to choose a different window Type. It doesn't get any plainer than Plain Box.
- In the splash window, drag a timer. I set the Period in the timer to 3000. Your call.
- In the splash window add Mouse Down and Key Down events in case the users want to click or keyboard out of the splash screen. In both of those events as well as the timer Action event, put the following code:
- In the App, add an Open event and add this code:
WinSplash.ShowModal(If you want to keep the spash screen from showing up every time you run your project in Debug, surround it with this if:
if Left(app.ExecutableFile.Name, 5).Uppercase <> "DEBUG" Then WinSplash.ShowModal End If
- All that is left is to be able to open the splash in Help -> About, so for that menu item, the only code you need is:
WinSplash.Timer1.Enabled = False Any reference to an Implicit Instance window will cause it to open, this just turns the timer off so that the user has to click to get rid of it.
That’s about it. I hope it saves someone some time.