$checkedlistbox1.CheckedItems - How do i get the checked index number
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.
$checkedlistbox1.CheckedItems - How do i get the checked index number
How do i get the selected index - so instead of getting the "title" getting the number in the list checked.
So above should print out 2 and 4. or 1 and 3 if the index started from 0
This is how to get the indices: https://docs.microsoft.com/en-us/dotnet ... kedIndices
Go to full postRe: $checkedlistbox1.CheckedItems - How do i get the checked index number
This is how to get the indices: https://docs.microsoft.com/en-us/dotnet ... kedIndices
Re: $checkedlistbox1.CheckedItems - How do i get the checked index number
CheckedIndices was the thing i was looking for thanks.
is there a way to print out all the option in the checkbox
Option 1
Option 2
and so on
is there a way to print out all the option in the checkbox
Option 1
Option 2
and so on
Re: $checkedlistbox1.CheckedItems - How do i get the checked index number
https://docs.microsoft.com/en-us/dotnet ... tBox_Items
found the answer with above link
foreach ($item in $checkedlistbox1.Items) {
Write-Host $item
}
found the answer with above link
foreach ($item in $checkedlistbox1.Items) {
Write-Host $item
}