树视窗形式 [英] treeview windows form

查看:108
本文介绍了树视窗形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如何在树视图节点列中添加组合框,文本框控件

hi

how do i add combobox,textbox control inside treeview node columns

推荐答案

不幸的是, System.Windows.Forms.TreeView 控件没有列。即使你从这个类派生你的自定义控件并使用所有者绘制或完全自定义图形渲染,列的实现几乎不可能或非常困难,正如我从我自己的经验中所知。您可以尝试从低级别实现此类控制,或者从 System.Windows.Forms.ListView 派生。



此CodeProject文章中显示了此类实现的一个想法:虚拟模式TreeListView [< a href =http://www.codeproject.com/Articles/42110/Virtual-Mode-TreeListView\"target =_ blanktitle =New Window> ^ ]。



-SA
Unfortunately, System.Windows.Forms.TreeView control does not have columns. Even it you derive your custom control from this class and use owner draw or fully custom graphic rendering, implementation of columns is nearly impossible or very difficult, as I know from my own experience. You can try to implement such control either from low level, or derive if from System.Windows.Forms.ListView.

One idea of such implementation is shown in this CodeProject article: Virtual Mode TreeListView[^].

—SA


这篇关于树视窗形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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