C#中定义treeview的双击事件
this.treeView1.DoubleClick+=newSystem.EventHandler(this.treeView1_DoubleClick);privat...
this.treeView1.DoubleClick += new System.EventHandler(this.treeView1_DoubleClick);
private void treeView1_DoubleClick(object sender, System.EventArgs e)
{
int i,y;
i=y+2;
}
我想获取节点的信息 但“System.EventArgs”并不包含“Node”的定义
如果改成TreeViewEventHandler TreeViewEventArges又会出现
无法将类型“System.Windows.Forms.TreeViewEventHandler”隐式转换为“System.EventHandler”这个错误
求教!!!! 展开
private void treeView1_DoubleClick(object sender, System.EventArgs e)
{
int i,y;
i=y+2;
}
我想获取节点的信息 但“System.EventArgs”并不包含“Node”的定义
如果改成TreeViewEventHandler TreeViewEventArges又会出现
无法将类型“System.Windows.Forms.TreeViewEventHandler”隐式转换为“System.EventHandler”这个错误
求教!!!! 展开
2个回答
展开全部
treeView1.NodeMouseDoubleClick += new TreeNodeMouseClickEventHandler(treeView1_NodeMouseDoubleClick);
void treeView1_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
{
throw new NotImplementedException();
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询