473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Form Scale Mode

I resize a control in a Form wth Scale mode set to vbInches. However, the
control's size changes in different screen resolution, I thought that if
Scale mode is set to vbInchs, then the control should have the same size
regardless of screen resolution... can anyone tell me why? thanks :>
Jul 17 '05 #1
3 11759
On Fri, 12 Mar 2004 13:21:46 -0800, "News Central" <Ba*@Bay.com>
wrote:
I resize a control in a Form wth Scale mode set to vbInches. However, the
control's size changes in different screen resolution, I thought that if
Scale mode is set to vbInchs, then the control should have the same size
regardless of screen resolution... can anyone tell me why? thanks :>


Insane as it sounds, inches on screen are 'logical inches'

Put this in a new Form and resize it, then hold a ruler against the
screen :-

Private Sub Form_Resize()
Me.ScaleMode = vbInches
Label1.Caption = Str$(Me.ScaleWidth)
End Sub

Jul 17 '05 #2

"News Central" <Ba*@Bay.com> wrote in message
news:W_********************@baytsp.com...
I resize a control in a Form wth Scale mode set to vbInches. However, the control's size changes in different screen resolution, I thought that if Scale mode is set to vbInchs, then the control should have the same size regardless of screen resolution... can anyone tell me why? thanks :>


First, a link to an article called "Background on Fonts" at MSDN:

http://msdn.microsoft.com/library/de...ml/ch17-02.asp

The end of the article is a sub-section called "The Logical Inch
Problem".

Second, a brief summary:

The screen is normally either 96 dots/inch (dpi) or 120 dpi. These are
the settings "Small Fonts" (normal) and "Large Fonts" in the Display
properties. Why 96 dpi? Partly because on most displays, small 8 pt text
would hard to read if it were real size. Also that at 96 dpi, a 640
pixel wide screen is equivalent to 6.7", the width of the printable area
of a typical 8.5" wide piece of paper.

Since displays range all over the place, from small laptops to wall size
projectors, there is no attempt to correlate this with an actual inch.
Who knows how far away your screen is from the projector, or what
adjustments you have made to your monitor display area?

Windows is setup this way intentionally, so that I can set my screen
resolution lower, and find that everything appears larger, allowing me
to sit back from the screen. Or set it higher, and see more stuff on
screen at once.

You could find out the screen resolution, and then account for that
while setting your control width. Frankly, I would find it quite
annoying if a program did not scale like other programs when I changed
screen resolution, but suit yourself.
Jul 17 '05 #3
"News Central" <Ba*@Bay.com> wrote in message news:<W_********************@baytsp.com>...
I resize a control in a Form wth Scale mode set to vbInches. However, the
control's size changes in different screen resolution, I thought that if
Scale mode is set to vbInchs, then the control should have the same size
regardless of screen resolution... can anyone tell me why? thanks :>


In most cases there is no way to determine the physical monitor size
so there is no way to accurately scale images to a specific physical
size. With printers it is different because you can normally
determine the physical print area size and make appropriate
adjustment. vbInches may work fine for printing but is only good for
relative sizing on the screen.
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line...
0
by: Open Minded111 | last post by:
***this isn't spam. I am actually just a dude who wrote an ebook and i want to share it with as many people as might benefit from it. I come in peace!*** Its well known that the path to...
10
by: DFS | last post by:
I'm sure this has been discussed before, but I'm too tired to hunt for it. I have a survey table containing questions with different answer scales. Some are 1 to 5, others are A,B,C, etc. I show...
0
by: Frank | last post by:
Hi, I use form.scale to scale up/down my form and controls, works great.But... when sizing in and the form and controls become bigger, at a certain moment the form will be as big/bigger than the...
10
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
7
by: sentra50 | last post by:
hello, I am trying to do the following: On load, a form must scale itself with a number of pixels on the X axis, lets say 100 pixels for example. Also it must do this on a timer, to ensure a...
2
by: vicky87.eie | last post by:
Hey i need to change a form's scale mode from pixels to millimeters. Can anyone tell me how to do that?
2
by: AliR \(VC++ MVP\) | last post by:
I'm trying to write a RTF render code in C#. I have the code in C++/MFC and it works fine, but I have run into a problem with the C# code. I think the C# code is from Microsoft, and I added...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.