本文介绍了Treeview节点已选中复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生,
我想在Windows应用程序中的复选框treeview节点上单击时执行某些功能.我尝试过checkcheck,afterselect,node mouseclick,对我没有任何作用.当我单击任一treeview节点名称,+号并单击click.i时,所有这些事件都会触发.
hi sir,
i want to do some functionality when click on the checkbox treeview node in windows application.i tried aftercheck,afterselect,node mouseclick, nothing works for me.all those events fire when i clicked on either treeview node name ,+ sign and clicked.i want only when i checked the checkbox.plz help me out.
推荐答案
TreeView tree = new TreeView(); tree.AfterCheck += new TreeViewEventHandler(tree_AfterCheck);
public void tree_AfterCheck(object sender, TreeViewEventArgs e) { /* do something with e.Node */ }
这篇关于Treeview节点已选中复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!