private void Form1_MouseClick(object sender, MouseEventArgs e) { this.Hide(); MainFormSample msp = new MainFormSample(); msp.Show(); timer1.Stop(); }
private void timer1_Tick(object sender, EventArgs e) { count++; if (count > 80) { this.Opacity -= 0.01; } if (this.Opacity <= 0) { this.Hide(); MainFormSample msp = new MainFormSample(); msp.Show(); timer1.Stop(); } }