Hi, I am looking for a way to word wrap TreeView text, if this is even possible.

Recommended Answers

All 4 Replies

You mean to say the remaining text will go to next line or be hidden ?

You mean to say the remaining text will go to next line or be hidden ?

Remaining text will go to the next line.

use vbcrlf or chr(10)

use vbcrlf or chr(10)

Thanks for your reply but it didn't work all it did was something like this "Text1|Text2"

I think I found a partial solution. I am breaking down the string into 45 characters or less if the 45th char is in the middle of a word then it goes to the space in front of the word. Putting each part in as a child node.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.