Click to See Complete Forum and Search --> : How to overcome the TwipsPerPixel problem?


mingwah
October 5th, 1999, 09:34 PM
Hello,

I don't understand it, but everytime I run my compiled VB programs on other computers, my controls go all awry. I mean, their sizes become different, and the font sizes used and pictures appear too big or too small, although on my own computer where I wrote the program, everything is laid out perfectly. This is devastating to me. I cannot distribute programs which lays out themselves differently on different computers.

Later on, I've found that it has something to do with TwipsPerPixel. Sometimes, some computers have 12 twipsperpixel, while others have 15. I don't know what other values could be out there. Having different twipsperpixel directly affects the dimensions of my controls.

What do I need to do so that my controls will always appear the way I've laid them out to be?

Thanx.
Ming_Wah

Lothar Haensler
October 6th, 1999, 01:47 AM
Videosoft offers a VSOCX control that comes with an "Elastic" control that can automatically resize controls (and fonts) depending on the screen resolution.