Multiline TreeNode

R

royclem

Greetings,

The Text property for a TreeNode only displays one line. For
example:

Root Node
|
|
- Child Node Line 1
|
|
- Child Node 2

However, I need a TreeNode that displays multiple lines of strings.
For
example:

Root Node
|
|
- Child Node Line 1
Child Node Line 2
Child Node Line 3
Child Node Line 4
|
|
- Child Node 2

Does anyone know how to do this or can point me to a reference where I
can create a custom TreeNode class? At this point in time, a
third-party
solution is not an option.

Thanks!
 
K

Ken Tucker [MVP]

Hi,

http://www.thecodeproject.com/vb/net/vbnettreelistview.asp

Ken
------------------
royclem said:
Greetings,

The Text property for a TreeNode only displays one line. For
example:

Root Node
|
|
- Child Node Line 1
|
|
- Child Node 2

However, I need a TreeNode that displays multiple lines of strings.
For
example:

Root Node
|
|
- Child Node Line 1
Child Node Line 2
Child Node Line 3
Child Node Line 4
|
|
- Child Node 2

Does anyone know how to do this or can point me to a reference where I
can create a custom TreeNode class? At this point in time, a
third-party
solution is not an option.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top