>>I was thinking that (doevents) might be the case, too, but didn't try it.
>>But I have tried your code and it doesn't work either.
>>Hmmm...
I just tried this in 9.0 and it works fine, both with and without doevents.
Try
SET SYSMENU TO DEFAULT
before running the test progam. If this is in your final program and you have a custom menu, the menu has to be set up correctly for this to work.