Thanks Atheist, it works! I would never have found out how it works by myself.

The only thing I have to do is to correct for the position of the form on the screen. Even with the "- Me.Left" correction, the rectangle is still offset to the lower right corner. Perhaps because I am using a MDI application with a menu. Both the MDI container and the menu offset the form to the lower right corner.