带TriState Checkbox的VB.Net Treeview [英] VB.Net Treeview with TriState Checkbox

查看:86
本文介绍了带TriState Checkbox的VB.Net Treeview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.NET TreeView控件不支持三态复选框,因此我们扩展了TreeView功能并创建了Extentended树视图和树节点。但是当我们扩展treenode时,treenode的ForeColor和BackColor属性不是
起作用;但是,其他属性似乎按预期工作。



当我们尝试在运行时更改Extended TreeNode的ForeColor属性时,它会将ForeColor属性设置为指定的值,但在树节点的视觉外观中没有显示。



扩展TreeView和扩展TreeNode的代码从文章"Tri-State TreeView Control for Reffered"中获得CodeProject上的.Net 1.1" b
:http://www.codeproject.com/KB/tree/treeviewex2003.aspx



任何人都可以帮我解决这个问题或建议我可以用来实现Treeview with TriState复选框而不破坏树视图控件的任何其他特性。

解决方案

嗨特里,


请检查一下:


http://www.codeproject.com/Articles/6549/Tri-State-TreeView-Control


http://www.vbforums.com/showthread.php?t=553046


.NET TreeView control does not supports tristate check box and hence we have extended the TreeView functionality and created Extentended treeview and tree node. But when we extend treenode then ForeColor and BackColor properties of treenode are not functioning; however, other properties seems to be working as expected.

It seems that when we try to change the ForeColor property for Extended TreeNode at runtime then it sets the ForeColor Property to specified value but the same is not shown in visual appearance of tree node.

Codes for Extended TreeView and extended TreeNode were Reffered from article "Tri-State TreeView Control for .Net 1.1"
on CodeProject at URL : http://www.codeproject.com/KB/tree/treeviewex2003.aspx

Can anyone help me to sort out this problem or suggests something that I can used to achieve the Treeview with TriState checkbox without breaking any other characteristics of treeview control.

解决方案

Hi Terry,

Please check this:

http://www.codeproject.com/Articles/6549/Tri-State-TreeView-Control

http://www.vbforums.com/showthread.php?t=553046


这篇关于带TriState Checkbox的VB.Net Treeview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆