Relative sizing of controls ( to screen size ) ? (1 Viewer)


Registered User.
Local time
Today, 09:17
May 17, 2012
I'd like to set the width & height properties of my controls, in ( Pixels or twips ), rather than cms, so that they adjust proportionally according to the size/dimension of the screen, my form loads in. I know in the property sheet, you can only set the measurement in cms. However in vba, at run-time, these properties are set in either twips or pixels ( not sure which ). So my code might look like ...
MyCtl.Width = (MyCtl.Width/2.54) * 1440
I believe there are 1440 twips per inch, and 2.54 cms. per inch. More importantly, do the number of twips change dependent on, and relative to the screen dimension - or is it pixels ? If so, in theory, this should work. Any help appreciated.:confused:


Duly Registered Boozer
Local time
Today, 02:17
Apr 30, 2011
This post is a few days old, but if you're still looking for a solution to this you might find this page helpful.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top Bottom