在c#中向树视图添加自定义控件 [英] Add custom control to treeview in c#
本文介绍了在c#中向树视图添加自定义控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个基于treeview的应用程序,但仍然停留在某个点上。我想向树视图添加一些控件,例如显示节点的文本框和图片框。但我不知道如何用(文本框和图片框)替换树节点。
有人可以帮我吗?
谢谢提前。
看到此链接了解详细信息
https://www.dropbox.com/s/nnqoi9heb7vzpk0/Newimg.png
i am developing an application based on treeview but stuck at a point. I want to add some controls to the treeview such as textbox and picturebox where the nodes are displayed. But i don't know how to replace tree nodes with (textbox and picturebox).
Can somebody help me here?
Thanks in advance.
see this link for a detail look
https://www.dropbox.com/s/nnqoi9heb7vzpk0/Newimg.png
推荐答案
请参阅 this [ ^ ] CodeProject文章的起点如何做到这一点。此示例演示如何将ComboBox
添加到节点,您可以将其扩展到其他类型的控件。
/ ravi
See this[^] CodeProject article for a starting point on how to do this. This example demonstrates how to add aComboBox
to a node, which you can extend to other types of controls.
/ravi
这篇关于在c#中向树视图添加自定义控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文