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.
Problem with handling event in checkedlistbox control
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.
- josh.perkins
- Posts: 4
- Last visit: Mon Jun 26, 2023 2:46 pm
Re: Problem with handling event in checkedlistbox control
FYI, I moved the post to the GUI forum.
You need to use the ItemCheck event and use the new value property:
You need to use the ItemCheck event and use the new value property:
PowerShell Code
Double-click the code block to select all.$checkedlistbox1_ItemCheck=[System.Windows.Forms.ItemCheckEventHandler]{ #Event Argument: $_ = [System.Windows.Forms.ItemCheckEventArgs] #TODO: Place custom script here if($_.NewValue -eq 'Checked') { } }David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.