I tried both suggestions, thank you. Suggestion 1 did not help, but suggestion 2 did.
Meanwhile I found out, that this "modal" problem is only on Linux Ubuntu 18.04, but not on Windows 7.
I attached my little project and a screenshot of the Runtime-Error when pressing Button1.
Are you on Windows or Linux?