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 = ;
this.Opacity = ;
this.Show();
this.timer1.Enabled = true; } private void timer1_Tick(object sender, EventArgs e)
{
if (this.Opacity<)
{
this.Opacity += 0.05; }
else
{
this.timer1.Enabled = false;
}
}
}
}

C#应用编程小例子-01-渐显的窗体

C#应用编程小例子-01-渐显的窗体

上一篇:在自定义的dwt文件中调用page_header.lbi和page_footer.lbi


下一篇:elasticsearch系列(一) 术语