C#窗体实现淡入淡出效果

以下是TransForm.cs源码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TransForm
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            timer1.Enabled = false;
            inspeed = 10;
            outspeed = 10;
        }

        private System.Windows.Forms.Timer timer1;
        public System.Windows.Forms.Button button1;


        #region Windows 窗体设计器生成的代码

        ///


        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容

你可能感兴趣的:(ASP.NET,c#,timer,button,object,windows,class)