About Splash Screen form setting

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.
 
L

lord.zoltar

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.
 
T

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top