Tri-State TreeView Checkbox

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
Posts: 66
Joined: Sun Mar 03, 2013 12:45 pm
Has voted: 1 time

Tri-State TreeView Checkbox

Post by ALIENQuake »


Is there an easy way to achieve Tri-State TreeView Checkbox for Powershell Forms? All examples which I found for pure c# forms require inheritance from System.Windows.Forms.TreeView/controls/etc.

Posts: 14614
Joined: Tue May 22, 2007 9:57 am
Answers: 2
Has voted: 1 time
Been upvoted: 3 times

Re: Tri-State TreeView Checkbox

Post by jvierra »

You have no control over the checkbox in a TreeView. These are not "Checkbox Controls". They are special checkboxes built into the TreeView class.