Home All Groups Group Topic Archive Search About

About Splash Screen form setting

Author
12 Dec 2006 2:12 PM
Mika M
Hi!

My Windows Forms VB 2005 application has Splash Screen form specified in
My Project/Application/Splash Screen. How can I close Splash Screen form
programmatically when Startup form (specified in same place) causes
error when it is loading and it cannot open database connection for
example?

Now error message will be below Splash Screen form, and it causes
problem how to read error message and close it.

--
Thanks in advance!

Mika

Author
12 Dec 2006 2:21 PM
lord.zoltar
Mika M wrote:
Show quoteHide quote
> Hi!
>
> My Windows Forms VB 2005 application has Splash Screen form specified in
> My Project/Application/Splash Screen. How can I close Splash Screen form
> programmatically when Startup form (specified in same place) causes
> error when it is loading and it cannot open database connection for
> example?
>
> Now error message will be below Splash Screen form, and it causes
> problem how to read error message and close it.
>
> --
> Thanks in advance!
>
> Mika

Good question! I had trouble with the SplashScreen too. Never did
figure it out. :( sorry.

Instead, I launch a form (from my sub Main) at startup with no form
borders and a splash image. I close it when I need to and display
loading/db connection status in it programatically from Sub Main.
Author
12 Dec 2006 3:33 PM
Tim Patrick
In my My.MyApplication.MyApplication_Startup routine, I call the Me.HideSplashScreen()
method just before displaying the error. It seems to work just fine. I also
set the event handler's e.Cancel property to True, but you are probably already
doing that.

-----
Tim Patrick - www.timaki.com
Start-to-Finish Visual Basic 2005

Show quoteHide quote
> Hi!
>
> My Windows Forms VB 2005 application has Splash Screen form specified
> in My Project/Application/Splash Screen. How can I close Splash Screen
> form programmatically when Startup form (specified in same place)
> causes error when it is loading and it cannot open database connection
> for example?
>
> Now error message will be below Splash Screen form, and it causes
> problem how to read error message and close it.
>
> --
> Thanks in advance!
> Mika
>