About Splash Screen form setting

  • Thread starter Thread starter Mika M
  • Start date Start date
M

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.
 
Mika said:
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.

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.
 
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.
 
Back
Top