custom event in a dialog

hi all,

I have a GUI that displays a list of choices to the user, with radio button. As soon as one of those radio button is checked, I would like to enable a button so that the script will set the choice that the user as made.

Is there a way to create a custom event that would enable that button when a radio button is checked?


Custom events are not required, you just need to create an even handler. Radio buttons have several events such as _Click or _CheckedChanged:

There are many examples of .NET forms or WPF in Powershell for radio buttons. Most of the time _Click is used.