. That message is generated once for each toggle button on the form."" is not a valid Boolean value
The error occurs before my code in that event is reached. As soon as I remove the toggle buttons, and comment out the related code everything works as expected. All I have to do is drop a toggle button on the form and I get that error in the synchronous event. Is there a setting that has to be changed for the toggle button?