This is still not working consistently, I can add a button, set up the events, load the dialog and it doesn’t work.
It seems I need to add another new control, delete the new control, save, then everything works.
maybe I am just doing something in the wrong order