StrataFrame Forum

Splash Screen...

http://forum.strataframe.net/Topic1271.aspx

By Ricardo Quartier - 5/24/2006

Hello guys, i was trying to insert a splash screen, but when i check the enable application framework (to select the splash screen), it seems to be alowed only the use of forms on the startup object, this way the AppMain that loads the system does not work.

Have you guys have an ideia of how to use the splash screen and the AppMain together?

Best......

Ricardo

By StrataFrame Team - 5/25/2006

Generally, when we show a splash screen, we show it programmatically through one of the methods within AppMain.  You can use InitApplication() or ShowLoginAndInitMainForm, either works just fine.  Basically, you just need some code like this:

Dim loSplash As New MySplashForm()

loSplash.Show()

System.Threading.Thread.Sleep(3000) '-- show the splash screen for 3 seconds

loSplash.Close()

loSplash.Dispose()

By Ricardo Quartier - 5/25/2006

Ben, but this way, does that feature of auto-close the splash screen, when the application is fully loaded works?
By StrataFrame Team - 5/25/2006

No this way doesn't do that.  You could create the splash screen, store it off in a Shared variable, show it before the call to StrataFrameApplication.RunApplication() in Main().  Then at the end of the ShowLoginAndInitMainForm() method, close the form and dispose of it. 
By Ricardo Quartier - 5/25/2006

Allright, I will try that. Thanks.....

Best.