错了,但不知道怎么改
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication11
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
System.Timers.Timer t = new System.Timers.Timer(5000);
t.Elapsed += new System.Timers.ElapsedEventHandler(theout);
t.AutoReset = true;
t.Enabled = true;//总提示错误说应该输出}
public void theout(object source , System.Timers.ElapsedEventArgs e)
{
this.Opacity+=0.01;
}
private void Form1_Load(object sender, EventArgs e)
{
this.Opacity= 0.0;
}
}
}
}//错误 2应输入类型、命名空间定义或文件尾
请帮助
------解决方案--------------------汗 没打} 大括号啊 你那个函数都没结束 这么低级的错误 下次自己多检查下啊
------解决方案--------------------是多打了个 } 吧
------解决方案--------------------大括号不匹配
------解决方案--------------------using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication11
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)