[RESOLVED] TreeView -- checkboxes-VBForums
Results 1 to 6 of 6

Thread: [RESOLVED] TreeView -- checkboxes

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    146

    Resolved [RESOLVED] TreeView -- checkboxes

    Is it possible to change the Treeview checkboxes from "Tick" to "Cross"?


    In other words, I'd like to cross a checkbox rather than ticking when I click on it.
    Last edited by winterslam; Jun 30th, 2009 at 11:16 PM.

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    89,094

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    146

    Re: TreeView -- checkboxes

    Awesome!


    Thanks

    Sorry again..

  4. #4
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    89,094

    Re: TreeView -- checkboxes

    Quote Originally Posted by winterslam View Post
    Sorry again..
    If you're apologising because you think I was implying that you should have read the documentation yourself, don't sweat it. You should have read the TreeView documentation first but this is not one I would necessarily have expected you to find. The property description doesn't immediately indicate that it will accomplish what you want. It's only when you read the details for the property that you see what it can do and I wouldn't have expected anyone to necessarily do that. The way I see it, you should always read the type overview first and, if you haven't found what you need, the member listing. If nothing raises its head there either then it's on to other sources.

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    146

    Re: [RESOLVED] TreeView -- checkboxes

    Is it possible to have multi-state checkboxes? (more than just 'on' and 'off')?







    I have read the related documentation but couldn't find the answer.

    I can only make the checkboxes 'muti-state' if I disable CheckBoxes property of the TreeView. But if I disable multistate, AfterCheck event no longer gets triggered.

  6. #6
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    89,094

    Re: [RESOLVED] TreeView -- checkboxes

    I've seen a third-party customised TreeView that does support three states in the check boxes, just like the CheckBox control, but then you'd have to accept the default look of the boxes. You may be able to do more by inheriting the control yourself but I'm not sure how exactly.

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.