Basically it's a normal form without borders that is shown while your main
form is loaded, this is from a post of this NG a while ago:
private SplashScreen splash;
public Form1()
{
splash = new SplashScreen();
splash.Show();
Application.DoE vents();
...
}
private void Form1_Load(obje ct sender, System.EventArg s e)
{
// Do load work.
splash.Dispose( );
}
The call to DoEvents() is of the most importance.
Hope this help,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Jeroen Ceuppens" <jeroen.ceuppen s@barco.com> wrote in message
news:%23eRFPgHp DHA.976@tk2msft ngp13.phx.gbl.. .[color=blue]
> Is there a specified method to do that?
>
> Thx
> Jeroen
>
>[/color]
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us > wrote
in message news:%234MZpUKp DHA.3616@tk2msf tngp13.phx.gbl. ..[color=blue]
> Basically it's a normal form without borders that is shown while your main
> form is loaded, this is from a post of this NG a while ago:
>
> private SplashScreen splash;
> public Form1()
> {
> splash = new SplashScreen();
> splash.Show();
> Application.DoE vents();
> ...
> }[/color]
Just another point to add...
If you're debugging you don't want the splash window to get in your way
while single stepping etc.
_SplashForm = new SplashForm();
#if DEBUG
// We don't want the Splash form in the way while in the debugger.
_SplashForm.Top Most = false;
#endif
_SplashForm.Sho w();
System.Windows. Forms.Applicati on.DoEvents();
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Alan Pretre" <no@spam> wrote in message
news:uXcQUuKpDH A.2244@TK2MSFTN GP12.phx.gbl...[color=blue]
> "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us >[/color]
wrote[color=blue]
> in message news:%234MZpUKp DHA.3616@tk2msf tngp13.phx.gbl. ..[color=green]
> > Basically it's a normal form without borders that is shown while your[/color][/color]
main[color=blue][color=green]
> > form is loaded, this is from a post of this NG a while ago:
> >
> > private SplashScreen splash;
> > public Form1()
> > {
> > splash = new SplashScreen();
> > splash.Show();
> > Application.DoE vents();
> > ...
> > }[/color]
>
> Just another point to add...
>
> If you're debugging you don't want the splash window to get in your way
> while single stepping etc.
>
> _SplashForm = new SplashForm();
> #if DEBUG
> // We don't want the Splash form in the way while in the debugger.
> _SplashForm.Top Most = false;
> #endif
> _SplashForm.Sho w();
> System.Windows. Forms.Applicati on.DoEvents();
>
> -- Alan
>
>[/color]
Comment