473,405 Members | 2,373 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,405 software developers and data experts.

Splash form stays open

Bob
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 event to make sure that
my database connectivity works OK. If it does not, I give the user a warning
message, but he can end up getting an unhandled exception that closes down
the app, which is what I want in that case. However when the app shuts down,
the splash screen remains visible. I think that it is running in its own
thread and it does not necessarely close down when the app closes.
I think best thing to do is to use the application events, see if the
splashscreen is still open and if it is, close it down. However I'm at a
loss on how to code this, and maybe there is another better way, I was
looking also for a property somewhere where you could set the max time the
splash screen would remain loaded whatever the case. But I could not find
it.

Any help would be appreciated

Bob
Jun 28 '06 #1
7 2842
Hello Bob,
I was
looking also for a property somewhere where you could set the max time
the
splash screen would remain loaded whatever the case. But I could not
find
it.
Any help would be appreciated


What class are you using as your SplashForm? Can you post the namespace
and dll if you know it

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
Jun 28 '06 #2
Bob, I had a very similar problem and based on feedback I got from Microsoft
in the MSDN forums, it looks like you may be experiencing an confirmed bug
in the Application Framework. See here for details...

http://forums.microsoft.com/MSDN/Sho...21737&SiteID=1

Basically, what I theorize is going on is that the Application Framework
will close the splash screen after it's done initializing the main startup
form. But if you cancel the creation of the startup form (say, because you
encountered a database error and want to shut down the application), the
startup form never completes its initialization. The Application Framework
is happily sitting there checking to see if the startup form is initialized,
finding that it's not, and happily waiting some more. Ad infinitum.

My solution? Unfortunately, because of this issue, I ended up not using the
Application Framework splash screen feature and managed the creation and
closing of my splash screen myself.

HTH

- Mitchell S. Honnert

"Bob" <bd*****@sgiims.com> wrote in message
news:OG*************@TK2MSFTNGP03.phx.gbl...
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 event to make sure that
my database connectivity works OK. If it does not, I give the user a
warning message, but he can end up getting an unhandled exception that
closes down the app, which is what I want in that case. However when the
app shuts down, the splash screen remains visible. I think that it is
running in its own thread and it does not necessarely close down when the
app closes.
I think best thing to do is to use the application events, see if the
splashscreen is still open and if it is, close it down. However I'm at a
loss on how to code this, and maybe there is another better way, I was
looking also for a property somewhere where you could set the max time the
splash screen would remain loaded whatever the case. But I could not find
it.

Any help would be appreciated

Bob

Jun 28 '06 #3
Bob
Yeah, you're right thats exactly what is happening.
You got a code snippet for managing the splash form yourself?
I would grately appreciate it.
Bob

"Mitchell S. Honnert" <ne**@REMhonnertOVE.com> wrote in message
news:ur**************@TK2MSFTNGP02.phx.gbl...
Bob, I had a very similar problem and based on feedback I got from
Microsoft in the MSDN forums, it looks like you may be experiencing an
confirmed bug in the Application Framework. See here for details...

http://forums.microsoft.com/MSDN/Sho...21737&SiteID=1

Basically, what I theorize is going on is that the Application Framework
will close the splash screen after it's done initializing the main startup
form. But if you cancel the creation of the startup form (say, because
you encountered a database error and want to shut down the application),
the startup form never completes its initialization. The Application
Framework is happily sitting there checking to see if the startup form is
initialized, finding that it's not, and happily waiting some more. Ad
infinitum.

My solution? Unfortunately, because of this issue, I ended up not using
the Application Framework splash screen feature and managed the creation
and closing of my splash screen myself.

HTH

- Mitchell S. Honnert

"Bob" <bd*****@sgiims.com> wrote in message
news:OG*************@TK2MSFTNGP03.phx.gbl...
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 event to make sure that
my database connectivity works OK. If it does not, I give the user a
warning message, but he can end up getting an unhandled exception that
closes down the app, which is what I want in that case. However when the
app shuts down, the splash screen remains visible. I think that it is
running in its own thread and it does not necessarely close down when the
app closes.
I think best thing to do is to use the application events, see if the
splashscreen is still open and if it is, close it down. However I'm at a
loss on how to code this, and maybe there is another better way, I was
looking also for a property somewhere where you could set the max time
the splash screen would remain loaded whatever the case. But I could not
find it.

Any help would be appreciated

Bob


Jun 28 '06 #4
Bob
And yeah I saw what they suggest as solution in the linkyou gave me, I'll
give that a shot also. THANKS.

"Mitchell S. Honnert" <ne**@REMhonnertOVE.com> wrote in message
news:ur**************@TK2MSFTNGP02.phx.gbl...
Bob, I had a very similar problem and based on feedback I got from
Microsoft in the MSDN forums, it looks like you may be experiencing an
confirmed bug in the Application Framework. See here for details...

http://forums.microsoft.com/MSDN/Sho...21737&SiteID=1

Basically, what I theorize is going on is that the Application Framework
will close the splash screen after it's done initializing the main startup
form. But if you cancel the creation of the startup form (say, because
you encountered a database error and want to shut down the application),
the startup form never completes its initialization. The Application
Framework is happily sitting there checking to see if the startup form is
initialized, finding that it's not, and happily waiting some more. Ad
infinitum.

My solution? Unfortunately, because of this issue, I ended up not using
the Application Framework splash screen feature and managed the creation
and closing of my splash screen myself.

HTH

- Mitchell S. Honnert

"Bob" <bd*****@sgiims.com> wrote in message
news:OG*************@TK2MSFTNGP03.phx.gbl...
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 event to make sure that
my database connectivity works OK. If it does not, I give the user a
warning message, but he can end up getting an unhandled exception that
closes down the app, which is what I want in that case. However when the
app shuts down, the splash screen remains visible. I think that it is
running in its own thread and it does not necessarely close down when the
app closes.
I think best thing to do is to use the application events, see if the
splashscreen is still open and if it is, close it down. However I'm at a
loss on how to code this, and maybe there is another better way, I was
looking also for a property somewhere where you could set the max time
the splash screen would remain loaded whatever the case. But I could not
find it.

Any help would be appreciated

Bob


Jun 28 '06 #5
On Wed, 28 Jun 2006 16:49:21 -0400, "Bob" <bd*****@sgiims.com> wrote:
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 event to make sure that
my database connectivity works OK. If it does not, I give the user a warning
message, but he can end up getting an unhandled exception that closes down
the app, which is what I want in that case. However when the app shuts down,
the splash screen remains visible. I think that it is running in its own
thread and it does not necessarely close down when the app closes.
I think best thing to do is to use the application events, see if the
splashscreen is still open and if it is, close it down. However I'm at a
loss on how to code this, and maybe there is another better way, I was
looking also for a property somewhere where you could set the max time the
splash screen would remain loaded whatever the case. But I could not find
it.

Any help would be appreciated

Bob


With "Use SplashFrom" enabled, the SplashForm is the first object that
loads. If I want to check prerequisites (like OS) and do not want the
app to run if a condition is not met, I put that code in the
SpashForm:

Public Sub New()
If some condition is not valid then
MessageBox.Show("Condition not met")
End
End If
' This call is required by the Windows Form Designer.
InitializeComponent()
End Sub
In the above, the SplashForm and app never load if the condition is
not met.
If I want to test for a condition (like Internet connectivity), warn
the user, but not prevent the app from running, I do that in the
MainForm's Shown Event.

Gene
Jun 28 '06 #6
Bob
Thanks Gene, those are good ideas.

I'll get used to this .net stuff yet :-)
Bob

"gene kelley" <ok**@by.me> wrote in message
news:mh********************************@4ax.com...
On Wed, 28 Jun 2006 16:49:21 -0400, "Bob" <bd*****@sgiims.com> wrote:
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 event to make sure that
my database connectivity works OK. If it does not, I give the user a
warning
message, but he can end up getting an unhandled exception that closes down
the app, which is what I want in that case. However when the app shuts
down,
the splash screen remains visible. I think that it is running in its own
thread and it does not necessarely close down when the app closes.
I think best thing to do is to use the application events, see if the
splashscreen is still open and if it is, close it down. However I'm at a
loss on how to code this, and maybe there is another better way, I was
looking also for a property somewhere where you could set the max time the
splash screen would remain loaded whatever the case. But I could not find
it.

Any help would be appreciated

Bob


With "Use SplashFrom" enabled, the SplashForm is the first object that
loads. If I want to check prerequisites (like OS) and do not want the
app to run if a condition is not met, I put that code in the
SpashForm:

Public Sub New()
If some condition is not valid then
MessageBox.Show("Condition not met")
End
End If
' This call is required by the Windows Form Designer.
InitializeComponent()
End Sub
In the above, the SplashForm and app never load if the condition is
not met.
If I want to test for a condition (like Internet connectivity), warn
the user, but not prevent the app from running, I do that in the
MainForm's Shown Event.

Gene

Jun 29 '06 #7
*scratches his head* Ugh! you're kidding right? *stomache churns* Glad I'm
finding this out NOW rather than later. I've just gotten done adding some
setup code in the initializing of my main form. It detects if the app has
been run before or not, and if not, runs the setup wizard... so... it sounds
like I need to shut off the application framework and do it the old-fashioned
way.

They way I'd like to see it run: splash happens. Main form loads and
displays, splash goes away, setup wizard appears. ... On the other hand, it
makes sense....

-ca

"Mitchell S. Honnert" wrote:
Bob, I had a very similar problem and based on feedback I got from Microsoft
in the MSDN forums, it looks like you may be experiencing an confirmed bug
in the Application Framework. See here for details...

http://forums.microsoft.com/MSDN/Sho...21737&SiteID=1

Basically, what I theorize is going on is that the Application Framework
will close the splash screen after it's done initializing the main startup
form. But if you cancel the creation of the startup form (say, because you
encountered a database error and want to shut down the application), the
startup form never completes its initialization. The Application Framework
is happily sitting there checking to see if the startup form is initialized,
finding that it's not, and happily waiting some more. Ad infinitum.

My solution? Unfortunately, because of this issue, I ended up not using the
Application Framework splash screen feature and managed the creation and
closing of my splash screen myself.

HTH

- Mitchell S. Honnert

"Bob" <bd*****@sgiims.com> wrote in message
news:OG*************@TK2MSFTNGP03.phx.gbl...
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 event to make sure that
my database connectivity works OK. If it does not, I give the user a
warning message, but he can end up getting an unhandled exception that
closes down the app, which is what I want in that case. However when the
app shuts down, the splash screen remains visible. I think that it is
running in its own thread and it does not necessarely close down when the
app closes.
I think best thing to do is to use the application events, see if the
splashscreen is still open and if it is, close it down. However I'm at a
loss on how to code this, and maybe there is another better way, I was
looking also for a property somewhere where you could set the max time the
splash screen would remain loaded whatever the case. But I could not find
it.

Any help would be appreciated

Bob


Jun 29 '06 #8

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

Similar topics

2
by: Bill | last post by:
Problem 1) Any ideas on how I would get a splash screen to appear for a certain amount of time when I open a database - it's to display a text based disclaimer message. I know about message...
2
by: John | last post by:
Hi I have created a splash form with no border. When I try to open this form in my main form using DoCmd.OpenForm "Splash", , , , , acDialog, the splash form opens with a form border. If I use...
3
by: steve | last post by:
Hi All I have set a splash screen form as the application splash screen in VB.net 2005 I t runs fine but stays on top when my login screen appears How can I shut the splash screen down when...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.