Hi Sapien
I am trying to make a Listview with checkbox enabled, but with MulitSelect disabled.
When I check the second item in the listview, both the first and second item are checked.
How do I get the first item to uncheck, when I check the second item ?
Listview MulitSelect help
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.
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.
Re: Listview MulitSelect help
I move this post to the PowerShell GUIs forums since this isn't a question about the PowerShell Studio product directly.
The MultiSelect option only applies to the highlighted selection of an item and not the checked state of an item.
You will need to respond to the CheckedItem and uncheck all the other items when a item is checked.
FYI, There is a CheckedListBox control, but you will still need to manually uncheck the items as well.
David
The MultiSelect option only applies to the highlighted selection of an item and not the checked state of an item.
You will need to respond to the CheckedItem and uncheck all the other items when a item is checked.
FYI, There is a CheckedListBox control, but you will still need to manually uncheck the items as well.
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Listview MulitSelect help
This should get you started:
David
PowerShell Code
Double-click the code block to select all.foreach($item in $listview1.Items) { if($item.Checked) { $item.Checked = $false } }Of course you will have to make sure you don't uncheck the item you just checked.
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.