Inconsistent behavior of Windows Forms

I created a couple of forms with Visual Studio Code (build 1.49.2) and PowerShell Tool Pro (5.15.2). When executing a debug action changes are not executed. The need of disabling the debugging mode and restart debugging picks up the changes.

Another issue I noticed is the clickable buttons in the forms. During debugging the buttons are not working and I need to restart the debugging mode to make the buttons available.
This is also with sub forms. I need to start this PS script to start the form separate and click the buttons to get them to work.

After compiling to exe none of the buttons are working.

Any help here is appreciated.