Results 1 to 4 of 4

Thread: [RESOLVED] Treeview - remove "+ -" on non expandable nodes ?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2016
    Location
    Slovenia
    Posts
    575

    Resolved [RESOLVED] Treeview - remove "+ -" on non expandable nodes ?

    Hi,

    before I lose my mind, can somebody tell me If there is an easy way to eliminate plus/minus signs from Treeview on nodes that don't have childs, like in Windows Explorer ? ...As far as I read accross forums that can't be done or very difficult, so I'm wondering If I missed something. Here's a screenshot of what I'm talking about :

    Name:  Capture.JPG
Views: 772
Size:  12.9 KB

    All nodes below node "2.0" are non-expandable so I would like to hide/eliminate that plus sign (triangle in my case) on all of them. Any easy way to do that ??

    Thanks for all help in advance !

  2. #2
    New Member
    Join Date
    Dec 2011
    Posts
    11

    Re: Treeview - remove "+ -" on non expandable nodes ?

    Set ShowPlusMinus = False

  3. #3
    PowerPoster
    Join Date
    Sep 2006
    Location
    Egypt
    Posts
    2,579

    Re: Treeview - remove "+ -" on non expandable nodes ?

    It's seem you are using custom TreeView because the .NET built-in TreeView control doesn't show [+] nor [-] beside empty nodes, it's also don't show triangle.



  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2016
    Location
    Slovenia
    Posts
    575

    Re: Treeview - remove "+ -" on non expandable nodes ?

    Hi,
    thanks for all replies...

    Set ShowPlusMinus = False
    That was not my question.

    It's seem you are using custom TreeView because the .NET built-in TreeView control doesn't show [+] nor [-] beside empty nodes, it's also don't show triangle.
    Yes, custom, but only overriding couple of things. Triangles display because I have set WindowTheme.


    I solved problem. Looks like populating Treeview was issue. Technique with adding "dummy" node to make them expandable was not correct. I fixed populating and now all "+" & "-" display where they should be.

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