Is there a way that I can set form size units to pixels rather than twips? I hate working with twips because they are meaningless to me.. Pixels give me a much better idea of the size..
Thanks,
Dan
Printable View
Is there a way that I can set form size units to pixels rather than twips? I hate working with twips because they are meaningless to me.. Pixels give me a much better idea of the size..
Thanks,
Dan
change the scalemode property of the form to be vbPixels
Remember that scale width and scale height only refer to the client area of the screen.
- gaffa
It's actually much easier to work with twips since all forms sizes actually are specified in twips. The scalewidth and scaleheight can't be used to change the size of the form, but instead the scale of the form. You can also use
screen.twipsperpixelx and screen.twipsperpixely to get the ratio between pixels and twips. It's usually 15.
And you can use ScaleX and ScaleY methods to convert between any scalemodes