RT
最好给代码,不要链接。
最好给代码,不要链接。
解决方案 »
- 我的要求很简单,在本地运行服务器上的程序,可以做到吗?
- 大家说这个网页采集程序的速度是快还是慢呢?
- 异步委托的问题,求教各位大虾
- 进度条能不能设为透明背景
- help,怎样把按钮设置成缺省的按钮?
- OledbDataReader 读取数据写到文本中遇到”\0“ StreamReader的对象读取认为是文件末尾,不能继续读取
- 小菜提问~~~~!! 关于部署windows应用程序
- 各位哥哥姐姐请问怎么学c#语言和。net啊
- 怎样byte数组中的内容复制到一个自定义结构中?
- 有关PropertyGrid 弹出一个Form 紧急求助
- COM组件注册问题
- 【100分跪求】用Attribute实现操作数据库时的 事务处理 的解决方法
TextBox tb = new TextBox();
tb.TextChanged += new EventHandler(tb_TextChanged); void tb_TextChanged(object sender, EventArgs e)
{
throw new Exception("The method or operation is not implemented.");
}
private void toolStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)//工具栏
{ if (e.ClickedItem.Text == "附件")
{
if (openFileDialog1.ShowDialog() ==DialogResult.OK)
{
attach.Name = "attachs";
attach.Width = 550;
attach.Height = 21;
attach.Location = new Point(72, 68);
splitContainer1.Panel1.Controls.Add(attach);
lbl.Name = "fujian";
lbl.Text = "附件:";
lbl.Location = new Point(21, 68);
splitContainer1.Panel1.Controls.Add(lbl);
toolStrip2.Location = new Point(13, 98);
splitContainer1.SplitterDistance = 135;
filename = openFileDialog1.FileNames;
foreach (string var in openFileDialog1.SafeFileNames)
{
attach.Text +=var+" ";
}
attach.TextChanged += new EventHandler(this.attach_TextChanged);
}
} }
private void attach_TextChanged(object sender, EventHandler e)
{
if (attach.Text == "")
{
splitContainer1.Panel1.Controls.Remove(attach);
splitContainer1.Panel1.Controls.Remove(lbl);
toolStrip2.Location = new Point(13, 68);
splitContainer1.SplitterDistance = 105;
}
}
跟你的有区别吗?错误 1 “attach_TextChanged”的重载均与委托“System.EventHandler”不匹配
红字改为EventArgs