G
Guest
Using VS.NET 2003, VB:
I have a TreeView object with lots of nodes. The treeview is docked on the
left side of my main from in a splitter. I want to set the splitter's initial
width to allow all the treeViews' nodes' labels to be visible.
The algorithm is simple, for each node in the tree view compare node's label
with the max width, and so on. The problem that I've got is how do I discover
the width of a TreeView's label? All I can find is the Text property - and
that doesn't translate well into a pixel width.
Any suggestions?
I have a TreeView object with lots of nodes. The treeview is docked on the
left side of my main from in a splitter. I want to set the splitter's initial
width to allow all the treeViews' nodes' labels to be visible.
The algorithm is simple, for each node in the tree view compare node's label
with the max width, and so on. The problem that I've got is how do I discover
the width of a TreeView's label? All I can find is the Text property - and
that doesn't translate well into a pixel width.
Any suggestions?