what no TriState Checkboxes in TreeNodes ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • colin

    what no TriState Checkboxes in TreeNodes ?

    Hi,

    I have a simple treeview, I want to put tri state checkboxes.
    I thought this would be standard,
    TreeViewNode has checkboxes,
    and checkboxes have tri state,
    but the TreeViewNode checkbox has no tri state capability.

    I googled for this and suepried to find this is lacking
    however they were mostly quite old links,
    I also found a example of how to use icons
    in place of the tri state checkbox,
    but this means you cant use both icons and tri state checkboxes :s

    I need to have an icon to show wich node is selected and what type if item
    it is,
    (theres quite a lot)

    The tree is going to be a decision tree so the checkbox determines
    if the dicision is yes/no or if the decidion is defered till lower nodes.

    I use .net 2.0 c# express,
    I cant beleive theyve not implemented common functionality
    consistently.

    have they added anything in later .bet versions by chance?
    or is there an api function wich can force the TreeVieweNode checkbox to the
    third state?

    many thanks
    Colin


  • colin

    #2
    Re: what no TriState Checkboxes in TreeNodes ?

    I seem to have managed it using StateImageList in the treeview and
    implementing the state chnage myself
    thanks

    Colin

    "colin" <colin.rowe1@nt world.NOSPAM.co mwrote in message
    news:I5Nfk.4504 2$bt6.38556@new sfe14.ams2...
    Hi,
    >
    I have a simple treeview, I want to put tri state checkboxes.
    I thought this would be standard,
    TreeViewNode has checkboxes,
    and checkboxes have tri state,
    but the TreeViewNode checkbox has no tri state capability.
    >
    I googled for this and suepried to find this is lacking
    however they were mostly quite old links,
    I also found a example of how to use icons
    in place of the tri state checkbox,
    but this means you cant use both icons and tri state checkboxes :s
    >
    I need to have an icon to show wich node is selected and what type if item
    it is,
    (theres quite a lot)
    >
    The tree is going to be a decision tree so the checkbox determines
    if the dicision is yes/no or if the decidion is defered till lower nodes.
    >
    I use .net 2.0 c# express,
    I cant beleive theyve not implemented common functionality
    consistently.
    >
    have they added anything in later .bet versions by chance?
    or is there an api function wich can force the TreeVieweNode checkbox to
    the third state?
    >
    many thanks
    Colin
    >

    Comment

    Working...