Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 912
  • Last Modified:

Visual basic Font Size Problem vb6

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 ???
0
Jimmyx1000
Asked:
Jimmyx1000
  • 2
1 Solution
 
EDDYKTCommented:
Have you tried to use true font size like arial?
0
 
Jaime OlivaresCommented:
Control dimensions are proportional to font size, in you increase the font size, button size will increase too.
0
 
Erick37Commented:
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.
0
 
Erick37Commented:
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
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now