I have a simple checkbox to enable or disable a textbox ReadOnly property. So in this case if I run my Form, check the box, it enables the textbox but if I uncheck the box it will not disable the textbox. I know I missing something simple here. Don't know if this matters but this is a TabControl window.
PowerShell Code
Double-click the code block to select all.
$RemotePS_CheckedChanged={
#TODO: Place custom script here
If ($RemotePS.CheckState -eq 'Unchecked')
{ $RmServer.ReadOnly="True"
Write-Host "Should be disabled"}
Else
{ $RmServer.ReadOnly="False"
Write-Host "Should be enabled"}
Thoughts or input? Thanks.