just stumbled upon this, we have the same problem using the same technique.
I'm going to try your solution, which works, but I just wanted to let you know how to reproduce it:
Our support of people spent a lot of time on this and, finally, narrowed it to the point that it only happened in Windows 7, and only happens right after launching windows from boot.
If you restart Windows, immediately start the application using this pop-up screen technique, the error will occur almost all the time.
If you restart Windows, wait a few minutes, and then run the application, you will never see an error.
I worked on this by putting (400) to sleep at the bottom of my main form load event, however some of them still saw the error, and I'm going to try your solution instead.
Johnc
source share