I'm wondering if someone could help me with this. I've used VB6 for years and am just now moving over to VB 2005. One of the problems I found a workaround for in VB6 was large fonts vs. small fonts. Some machines I support used the large font system setting while a number of other ones use the small font system setting. I know that one would say to just make all machines one or the other. But we have such a large number of machines to support that it just isn't possible.
Anyways, with VB6, I was able to use the TwipsPerPixelX and TwipsPerPixelY functions to determine a machine's font size. Then, if the font size was different from my development machine's font size, my code would resize controls and fonts accordingly. It worked pretty slick.
The problem is that I want to do the same thing in VB 2005. Unfortunately, the TwipsPerPixel functions don't seem to be around anymore. I've read about them being available in the Microsoft.VisualBasic.Compatibility namespace, and I'm able to find Microsoft.VisualBasic in the object browser. However, it does not contain a Compatibility namespace inside of it.
Can anyone help? Thanks!
0 · ·