473,396 Members | 1,849 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

About Splash Screen form setting

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
Dec 12 '06 #1
2 2327

Mika M wrote:
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.

Dec 12 '06 #2
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
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

Dec 12 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: andrewcw | last post by:
I implemented the simplest of splash screens ( static and on its own thread ). But it seem that when first called maybe 8 seconds elapsed before it showed up, the main form follows several seconds...
1
by: BillZondlo | last post by:
Can someone look at this and tell me why, when I call this from my main app, it displays fine (fades form in and out) but then before my main app displays, I see other dialog boxes flash...
4
by: Graham Charles | last post by:
Hello, I'm finding that if I set the "Cancel" property during the AppStartup event, the application's Splash form remains loaded. A call to the Close property of the SplashForm at that point...
7
by: Bob | last post by:
I have a winforms app written in Vs2005 Vb.Net, The setiings are to Enable the application Framework and I defined a splashform. Works fine if no errors occur. I do a checking on the mainform load...
5
by: steve | last post by:
Hi All I have a form set as the splash screen in VB.net 2005 application properties How can I tell when it has or is closing, as I want to then run some licence checking code without the...
2
by: will_456 | last post by:
In vb2005 Express: In My Project Application Splash Screen I have selected my splash screen form. The form opens on project startup but closes immediately before anyone would have time to read...
10
by: =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= | last post by:
Hi In my app I have a SplashScreen, a login form and a main form. On launching the app, I'd like to show the SplashScreen while reading config files and attempting a database connection. I show...
4
by: Gaz | last post by:
I am having a bit of a problem getting my application to work properly. RIght here is my problem... WHen my C# windows app loads up the start form, i create a new thread and show the splash...
3
by: Anthony P. | last post by:
Hello Everyone, I'm writing an application that, so far, only has three forms: frmSplashScreen frmLicenseScreen frmConfigurationScreen Now, frmSplashScreen has a timer that sits it on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.