I need to find out the width of a selected node in a treeView control.
The text to the node is being added through button click and sometimes the text is large inside the node then it messing up all the design of my form. I tried so much but I cant find any properties existing which can find the width of a node (may be there can be). If it is a silly question give the answer in comment, so that I can delete the question later.
Please help
Thanks in Advance
How about calling
Graphics.MeasureString? Should get you close enough to actual width.http://msdn.microsoft.com/en-us/library/6xe5hazb.aspx#Y0