>Does not work for me. The first part works, but then the whole VFP window moves, not just my form. I've tested in VFP, I'm going to do a quick test in run-time.
Ah, sorry, I missed the part that it was a form in FoxPro's screen, I thought it was a top level form, No, it will not work then. You can use some code to move the form from anywhere in the body if you want...
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges