Page 1 of 1
Problem with handling event in checkedlistbox control
Posted: Fri Jun 07, 2013 9:13 am
Not sure how to properly handle this in PowerShell studio. I have a checkedlistbox and want to display a textbox when a specific item in the checkedlistbox is checked. The problem I am running into is that the checkedlistbox (itemcheck and click) event doesn't see the check value until after the event fires.
Any help would be great.
Re: Problem with handling event in checkedlistbox control
Posted: Wed Jun 12, 2013 10:08 am
FYI, I moved the post to the GUI forum.
You need to use the ItemCheck event and use the new value property:
Double-click the code block to select all.
#Event Argument: $_ = [System.Windows.Forms.ItemCheckEventArgs]
#TODO: Place custom script here
if($_.NewValue -eq 'Checked')