Re: Splash Screens , how could something so basic still be hard?
- From: "Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx>
- Date: Fri, 17 Apr 2009 17:08:53 -0700
On Fri, 17 Apr 2009 16:58:42 -0700, Michael B. Trausch <mbt@xxxxxxxxxxxxxxx> wrote:
[...]
That seems to be the approach I am able to find anyway:
http://www.programmersheaven.com/2/FAQ-WinForm-Splash-Screen
This is the most basic implementation of a splash screen one might come up with. It has the unfortunate flaw that aside from getting the splash screen to display once, there is no message pump to allow for further GUI interactions. For example, if the splash screen, or any other part of the UI, winds up needing to be redrawn (e.g. someone drags a window over it), it won't be able to.
http://www.codersource.net/csharp_splash_screen.aspx
This one is marginally more flexible. In particular, it creates the splash screen itself on a different thread, and then uses ShowDialog() (which has a message pump built-in) to display it. On the other hand, other than that it's not a very good example. It has some serious thread mis-use problems (one should not use Thread.Abort() to terminate threads, nor does it make any sense to use Thread.Sleep() to wait for a thread to exit...use Thread.Join() if you absolutely need that behavior, and don't write code that has to wait on a thread to exit if you can at all help it).
Like the first example, it also provides no help to anyone trying to have updates from one thread be presented to the use in a window being shown from another thread.
Pete
.
- Follow-Ups:
- Re: Splash Screens , how could something so basic still be hard?
- From: Michael B. Trausch
- Re: Splash Screens , how could something so basic still be hard?
- References:
- Splash Screens , how could something so basic still be hard?
- From: RvGrah
- Re: Splash Screens , how could something so basic still be hard?
- From: Michael B. Trausch
- Splash Screens , how could something so basic still be hard?
- Prev by Date: Determine if object libraries are available
- Next by Date: Re: Determine if object libraries are available
- Previous by thread: Re: Splash Screens , how could something so basic still be hard?
- Next by thread: Re: Splash Screens , how could something so basic still be hard?
- Index(es):
Relevant Pages
|