Is there a way to disable a few items in the System.Windows.Forms.ListBox in PowerShell?
i.e. ListBox contains:
item-a
item-b
item-c
item-d
item-e
and I like to make for example, item-c
and item-e
not selectable. Thanks!
Short answer: There is no native Disable/Enable items in the ListBox control.
I see two ways to do it: