写的是一个窗体的Load /Click/Closing 事件,出现错误错误 1 “测试.Form1”不包含“Form1_Load”的定义,并且找不到可接受类型为“测试.Form1”的第一个参数的扩展方法“Form1_Load”(是否缺少 using 指令或程序集引用?) E:\C#\窗体应用程序\测试\Form1.Designer.cs 51 55 测试
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 窗体事件Load_Click_Closing
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
MessageBox.Show("已经登陆");
}
private void Form1_Click(object sender,EventArgs e)
{
MessageBox.Show("已经单击事件");
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
DialogResult dr = MessageBox.Show