Hello,
I have a treeview control in WinForms that is filled from a wide variety of database content. I need to calculate the minimum width of the treeview control (after it is populated) so that horizontal scroll bars are not necessary to view the content. The calculation needs to account for the size of the longest text in the tree but it also needs to account for indent level, hierarchy graphics, etc.
I don't see an obvious way to horizontally autosize the treeview control based on its content. Has anyone found a good way to accomplish this?
Thanks in advance...
Mark