using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 模仿卡巴基斯漸變窗體
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
if (this.Opacity > 0.1)
{
this.Opacity = this.Opacity - 0.02;
}
else
{
this.timer1.Enabled = false;
Close();
}
}
private void Form1_Load(object sender, EventArgs e)
{
this.timer1.Enabled = true;
this.Opacity = 0.99;
}
private void label1_Click(object sender, EventArgs e)
{
}
}
}
聯(lián)系客服