求助关于欢迎界面消失以后弹出登陆界面的代码
我弄到一个欢迎界面是这样弄的:基本上我也看懂了是什么回事
现在就是想要在界面结束时弹出一个登陆界面,要在哪里加呢?
大概加些什么代码?
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private bool isFade = true;
private void Form1_Load(object sender, EventArgs e)
{
this.ClientSize = this.BackgroundImage.Size;
this.Opacity = 0;
this.timer1.Interval = 50;
this.timer1.Enabled = true;
this.timer1.Start();
}
private void timer1_Tick(object sender, EventArgs e)
{
if (isFade)
{
this.Opacity += 0.02;
if (this.Opacity >= 1)
{
isFade = false;
}
}
else
{
this.Opacity -= 0.02;
if (this.Opacity <= 0)
{
this.timer1.Stop();
this.Close();
}
}
}