本帖最后由 saelec 于 2010-01-08 14:54:35 编辑

解决方案 »

  1.   

    namespace test 

        public partial class Form1 : Form 
        { 
            public Form1() 
            { 
                InitializeComponent(); 
            }         private void Form1_Load(object sender, EventArgs e) 
            {         }         private void timer1_Tick(object sender, EventArgs e) 
            { 
                this.timer1.Tick += new System.EventHandler(this.CheckUpdate); 
            }         private void CheckUpdate(object sender, EventArgs e)
            {
                //没有这个函数编译时又怎么能够通过
             }
        } 
      

  2.   

    this.CheckUpdate貌似应该是个方法
      

  3.   

    难道你添加事件的时候,在+=之后没有按两次Tab键吗?
      

  4.   

    添加为头的时候需要一个已经定义好的函数作为其参数
    类似于
     private void CheckUpdate(object sender, EventArgs e) 
            { 
                //。
            } 
      

  5.   

    namespace test 

        public partial class Form1 : Form 
        { 
            public Form1() 
            { 
                InitializeComponent(); 
            }         private void Form1_Load(object sender, EventArgs e) 
            {         }         private void timer1_Tick(object sender, EventArgs e) 
            { 
                this.timer1.Tick += new System.EventHandler(this.CheckUpdate);////使用了没有定义的事件 
            }         private void CheckUpdate(object sender, EventArgs e) 
            { 
                 ///////这个事件你没有定义,在这里定义了就可以用了
              } 
        } 
      

  6.   

    这样还不行。还要在哪里加呢?namespace test
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }        private void Form1_Load(object sender, EventArgs e)
            {        }        private void CheckUpdate1(object sender, EventArgs e)
            {
                
            }         private void timer1_Tick(object sender, EventArgs e)
            {
                this.timer1.Tick += new System.EventHandler(this.CheckUpdate1);
            }    }
    }这样还不行。还要在哪里加呢?
      

  7.   

    public Form1() 

        InitializeComponent(); 
        this.timer1.Tick += new System.EventHandler(this.CheckUpdate1);