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.
This topic is 4 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
ALIENQuake
Posts: 112
Last visit: Mon Jan 29, 2024 7:35 am
Has voted: 4 times

Tri-State TreeView Checkbox

Post by ALIENQuake »

Hi,

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.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 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.
This topic is 4 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked