Solved

Visual basic Font Size Problem vb6

Posted on 2004-09-21
4
857 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
Comment Utility
Have you tried to use true font size like arial?
0
 
LVL 55

Expert Comment

by:Jaime Olivares
Comment Utility
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
Comment Utility
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
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now