Visual basic Font Size Problem vb6

Jimmyx1000
Jimmyx1000 used Ask the Experts™
on
Hello I have designed a layout with a form and various
command buttons  and small font mode
(under windows display properties  : small font )

When I change the windows to large font size

the command buttons buttons change size
the listbox and listview has changed  position

What can i do ???
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Have you tried to use true font size like arial?
Jaime OlivaresSoftware Architect
Top Expert 2008

Commented:
Control dimensions are proportional to font size, in you increase the font size, button size will increase too.
Top Expert 2005

Commented:
When you change from small to large (or normal) fonts in the display settings dialog, you may see a change in the value of screen.twipsperpixelx and screen.twipsperpixely.  This also makes your form's scalewidth and scaleheight values change.  So the positions of the controls may also be affected.

I had this problem a few years back, but found no easy fix.  It is tedious to position each control via code, so I opted to require the customer to use a predefined screen setting.  This is not a viable option for most applications.

The only thing I can suggest is do not assume that the value of twipsperpixel=15, sometimes it's 12.
Top Expert 2005
Commented:
And now a word from our sponsors...

How To Create a Resolution-Independent Form
http://support.microsoft.com/default.aspx?scid=kb;en-us;182070

Again, it's tedious

GL

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial