Hi All,

I'm trying to resize a picture box to a particular size (in pixels). In theory, what I need to do is this :
Code:
Picture.Height = Picture.ScaleY(NewHeight, Picture.ScaleMode, vbPixels)
Picture.Width = Picture.ScaleX(NewWidth, Picture.ScaleMode, vbPixels)
or I should be able to multiply the NewHeight or NewWidth by Screen.TwipsPerPixelX / Y. Both give me inaccurate results!

Screen.TwipsPerPixel returns (as far as I can see) an integer (15 on my machine). Setting scaleMode to vbPixels on the picture box and manually resizing until I get a 100 pixel high box gives a 1560 high twip box. This would seem to indicate that twips per pixel is rounded (odd numbers round down remember) to the nearest integer. Is there a better way to do this??? I've tried everything I can think of to get the damn thing to work but it always seems to give me the wrong size. Any help will REALLY be appreciated!

K