Results 1 to 4 of 4

Thread: Tree View Question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Buenos Aires, Argentina
    Posts
    64

    Talking Tree View Question

    Hi!!

    I need to use a Tree View Control to display items in it wich text may have line feed / cr chars. They come from a Multiline Text Box.

    How can i do this?

    Node
    |__ Item 1blah, blah
    | blah, blah
    | blah, blah
    |__ Item 2 blah, blah
    blah, blah,blah, blah


    Thanx!!
    Juan
    Argentina
    VB6 Ent.
    [email protected]

  2. #2
    Hyperactive Member Ed Lampman's Avatar
    Join Date
    Mar 2001
    Posts
    273
    You should probably parse out the control characters using the Replace function.

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    The MS TreeView control does not support multiline node text. As far as I know, you have 1 of 2 options:

    1) Add another node right under the other one each time you come across the vbCrLf or -
    2) Remove the newlines altogether.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Buenos Aires, Argentina
    Posts
    64
    OK Thanx!!
    Juan
    Argentina
    VB6 Ent.
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width