Here's an example. The splash form is made transparent with a bee, so
when it loads, only the bee is visible. Then a timer, in frmSplash,
will close the form after 1375 ms. The bee will "fly" away to the upper
left corner and finally disappear.
However, is there a better way to animate the bee than my example?
The code in frmSplash:
private void timer1_Tick(object sender, System.EventArgs e)
{
this.Left = 400;
this.Top = 300;
this.Left = 375;
this.Top = 275;
this.Left = 350;
this.Top = 225;
this.Left = 300;
this.Top = 200;
this.Left = 250;
this.Top = 150;
this.Left = 200;
this.Top = 100;
this.Left = 100;
this.Top = 75;
this.Left = 50;
this.Top = 10;
this.Left = 0;
this.Top = 0;
Close();
}
private void frmSplash_Load(object sender, System.EventArgs e)
{
timer1.Enabled = true;
}
And in frmMain:
[STAThread]
static void Main()
{
///start splash-form for application
Application.Run(new frmSplash());
///start main-form
Application.Run(new frmMain());
}
Me.Name