If you assign a non-integer value to the Width or Left etc. property of a control the property is randomly assigned another value. If you use an integer value everything works fine.
For example:
lo=CreateObject("textBox")
lo.Width=160 && Work Fine
lo.Width=25.0 && sets the width property to 175
This does not happen in VFP 7.0. I found this problem when converting an app from VFP 7.0 to VFP8. I was dynamically sizing command boxes and noticed the sizes did not work in VFP 8.0 and finally traced to non-integer values being assigned to the width property.
This looks like some kind of C++ type conversion problem.
Simon
Simon White
dCipher Computing