Click here to Skip to main content
15,907,328 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

Is there any methods to conver the treenode in to a control ...

i have a tereeview in windows form application i need to convert the treenode to a Control class in c#.net any suggestions ..
Posted

You should read this[^] first.
 
Share this answer
 
No. A TreeNode is not a control. The TreeView is a control, and you can get that from a node with its TreeView property (for example if you want to use graphics context text measurement or something).

To be more helpful, you need to be clear about what you are actually trying to do.
 
Share this answer
 
Comments
rajesh.r4321 10-Aug-11 9:20am    
i need to add image tooltip to a tree node but we can add this feature only for controls thats y i need to the convertion.........
BobJanova 10-Aug-11 14:19pm    
You will have to use MouseOver on the TreeView and hit test to find which node is being hovered over and create/hide the tip manually. Also, I suspect this is going to be a bad UI experience, unless you do it really nicely.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900