Well, that's all fixed now, for the first page, frmMain. The main lesson I learned is that you shouldnot try to determine the active control before the form is fully loaded.
Now I can disable all controls except the one that has focus. For that button, combobox, etc, I use a statis BRunning...