c# - Tri-State Checkboxes in WinForms TreeView -
i have treeview allows users select elements of hierarchical data checking or un-checking each item's checkbox. disable box on nodes have children using checkbox hiding technique question, so:
☑ node 1 ☐ node 2 • node 3 ☑ node 3.1 ☑ node 3.2 • node 4 ☐ node 4.1 ☑ node 4.2 but better solution use tri-state check boxes parent nodes, this:
☑ node 1 ☐ node 2 ☑ node 3 ☑ node 3.1 ☑ node 3.2 ☒ node 4 ☐ node 4.1 ☑ node 4.2 since functionality available in win32, question how without drawing boxes myself (e.g., user-drawn control or using image list). not familiar win32 api @ all; how 1 extend technique linked above enable tri-state checboxes on managed treeview control?
have taken @ this? seems job. might bit dated, (looks article 2004), i'm sure same principles can extended whatever need do.
Comments
Post a Comment