When you control the controls through code, the default sizes change (I assume that if you change the ScaleMode property of the form, you can choose another device).
Your conversion formula is wrong (it's easy to make a mistake). Try this by wrapping in a function to avoid code duplication with the possibility of typos in each duplicated
Function nTwipsFromPixelsX(ByVal nPixels As Long) As Long nTwipsFromPixels = TwipsPerPixelX() * nPixels End Function
Markj source share