I am trying to close a winform "Splash Screen" and running another form.
private void timer1_Tick(object sender, EventArgs e)
{
rectangleShape2.Width += 5;
if (rectangleShape2.Width >= 473)
{
timer1.Stop();
HomeScreen H = new HomeScreen();
H.ShowDialog();
//to close current form
this.Close();
}
}
The problem is that: the Splash Screen form still working in the task bar
how can i close it and hide it from the task bar?
Thanks.