110,533
社区成员
发帖
与我相关
我的任务
分享
private void Welcome_Load(object sender, EventArgs e)
{
for (double d = 0.01; d < 2; d += 0.03)
{
System.Threading.Thread.Sleep(1);
Application.DoEvents();
this.Opacity = d;
this.Refresh();
}
for (double d = 1; d > 0; d -= 0.015)
{
System.Threading.Thread.Sleep(1);
Application.DoEvents();
this.Opacity = d;
this.Refresh();
}
}
private void timer1_Tick(object sender, EventArgs e)
{
Opacity += 0.1;
if (Opacity >= 1) timer1.Stop();
}
void Deeper()
{
timer1.Start();
}
public Form2()
{
InitializeComponent();
this.Opacity = 0;
}
private void Form2_Load(object sender, EventArgs e)
{
this.Show();
for (double d = 0.01; d < 2; d += 0.03)
{
System.Threading.Thread.Sleep(1);
Application.DoEvents();
this.Opacity = d;
}
}
for (double d = 0.01; d < 2; d += 0.03)
{
System.Threading.Thread.Sleep(1);
Application.DoEvents();
this.Opacity = d;
}