C#编辑缺少using指令或程序集
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Da...
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 WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
richTextBox1.SelectionFont = new Font("Tahoma", 12, FontStyle.Bold);
richTextBox1.SelectionColor = System.Drawing.Color.Red;
}
private void label1_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
}
}
}
“WindowsFormsApplication1.Form1”不包含“richTextBox1_TextChanged”的定义,并且找不到可接受类型为“WindowsFormsApplication1.Form1”的第一个参数的扩展方法“richTextBox1_TextChanged”(是否缺少 using 指令或程序集引用?) 展开
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
richTextBox1.SelectionFont = new Font("Tahoma", 12, FontStyle.Bold);
richTextBox1.SelectionColor = System.Drawing.Color.Red;
}
private void label1_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
}
}
}
“WindowsFormsApplication1.Form1”不包含“richTextBox1_TextChanged”的定义,并且找不到可接受类型为“WindowsFormsApplication1.Form1”的第一个参数的扩展方法“richTextBox1_TextChanged”(是否缺少 using 指令或程序集引用?) 展开
2个回答
展开全部
richTextBox1的TextChanged事件有问题,搜一下“richTextBox1_TextChanged”,把带richTextBox1_TextChanged的语句删除就可以了;
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询