C#应用编程小例子-01-渐显的窗体
- C#应用编程小例子-01-渐显的窗体
using System; using System.Windows.Forms; namespace WindowsFormsApp2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { this.Hide(); timer1.Interval = 50; this.Opacity = 0; this.Show(); this.timer1.Enabled = true; } private void timer1_Tick(object sender, EventArgs e) { if (this.Opacity<1) { this.Opacity += 0.05; } else { this.timer1.Enabled = false; } } } }
网名:浩秦;
邮箱:root#landv.pw;
博客:landv.cnblogs.com;
只要我能控制一個國家的貨幣發行,我不在乎誰制定法律。金錢一旦作響,壞話隨之戛然而止。