One Click to rule them all?
Posted: Tue Oct 09, 2012 12:11 pm
As soon as my form loads it immediately checks the users current domain. If it's not an approved domain, all the form controls are disabled. Currently, I am doing an IF($ENV:USERDOMAIN -ne 'mydomain') and them manually enabling/disabling all the controls based on the results.
Is there a command that I can invoke that can set *all* the controls (or at least all the buttons) to 'Enabled = $false' ? I was thinking of adding all my control names to an array, and them doing a foreach...but i don't know if that's the best way (or even possible).
Thanks
Is there a command that I can invoke that can set *all* the controls (or at least all the buttons) to 'Enabled = $false' ? I was thinking of adding all my control names to an array, and them doing a foreach...but i don't know if that's the best way (or even possible).
Thanks