Solved

Visual basic Font Size Problem vb6

Posted on 2004-09-21
4
874 Views
Last Modified: 2013-12-03
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
Comment
Question by:Jimmyx1000
  • 2
4 Comments
 
LVL 26

Expert Comment

by:EDDYKT
ID: 12111029
Have you tried to use true font size like arial?
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 12112378
Control dimensions are proportional to font size, in you increase the font size, button size will increase too.
0
 
LVL 32

Expert Comment

by:Erick37
ID: 12115193
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
 
LVL 32

Accepted Solution

by:
Erick37 earned 500 total points
ID: 12115421
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question