以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 授权目录树有时失灵 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=113288) |
-- 作者:wei0769 -- 发布时间:2018/1/12 15:35:00 -- 授权目录树有时失灵
Dim trv1 As WinForm.TreeView = e.Form.Controls("TreeView1") If e.node.ParentNode Is Nothing Then \'If e.Node.ParentNode IsNot Nothing Then \'取消父节点的选中标记,因为选中子节点,就不要选中父节点了 If nd1.Level = 1 Then If dr IsNot Nothing Then |
-- 作者:有点甜 -- 发布时间:2018/1/12 15:42:00 -- 这个是 afterchecknode 事件的bug。快速点击勾选目录树的时候,就会不触发事件。 |
-- 作者:有点甜 -- 发布时间:2018/1/12 15:45:00 -- 目前没有解决的方法,除非你不用treeview,你重写这个treeview控件。
重写的控件用这样加入和绑定事件了 http://www.foxtable.com/webhelp/scr/2374.htm
参考
http://blog.csdn.net/ypchen001/article/details/47982811
https://my.oschina.net/Tsybius2014/blog/551358
[此贴子已经被作者于2018/1/12 15:45:08编辑过]
|
-- 作者:wei0769 -- 发布时间:2018/1/12 16:02:00 -- 我没有这个能力,等你们更新,以后多检查下就是了 |