Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TreeView Control Node Wrap Property

Status
Not open for further replies.

dlouis0572

Technical User
Aug 13, 2008
2
US
Hello all,

I need some code that will word wrap the text in my treeview control using VBA. Thanks in advance.
 
What have you tried so far and where in your code are you stuck ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
AFAIK it can not be done in a basic treeview, you will have to look at a 3rd party app. Even if you hardwire a carriage return line feed it does not display as word wrapped or even add a second line.
 
I've tried the hardwire carriage return (vbNewLine) method with no luck as well as the NodeWrap property (not sure if I used it correctly) that doesn't seem to be supported. Any suggestions would be greatly appreciated.
 
NodeWrap property (not sure if I used it correctly)

AFAIK, you did not use it properly since it is not a property of a standard treeview control. It should have gave you a "object does not support method or property error". If it did not give you an error maybe there is something new that I am not aware of.

Any suggestions would be greatly appreciated.

1)Again, AFAIK this can not be done with a standard Access available treeview. There are 3rd party controls you can use.

2)I usually just put a short name in a tree view label and on the nodeclick event show my record details.

3)Built a front end using .net. I think this capability is available.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top