Click here to Skip to main content
15,900,461 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to create ODBC DSN entries programmatically in .NET? Pin
Eric Dahlvang1-Dec-06 10:10
Eric Dahlvang1-Dec-06 10:10 
GeneralRe: How to create ODBC DSN entries programmatically in .NET? Pin
bvennelaganti2-Dec-06 12:52
bvennelaganti2-Dec-06 12:52 
QuestionHow to control the real dimension on screen? Pin
gshen1-Dec-06 7:43
gshen1-Dec-06 7:43 
AnswerRe: How to control the real dimension on screen? Pin
Ravi Bhavnani1-Dec-06 8:08
professionalRavi Bhavnani1-Dec-06 8:08 
GeneralRe: How to control the real dimension on screen? Pin
gshen1-Dec-06 8:47
gshen1-Dec-06 8:47 
GeneralRe: How to control the real dimension on screen? Pin
Ravi Bhavnani1-Dec-06 8:59
professionalRavi Bhavnani1-Dec-06 8:59 
AnswerRe: How to control the real dimension on screen? Pin
CPallini1-Dec-06 11:03
mveCPallini1-Dec-06 11:03 
AnswerRe: How to control the real dimension on screen? Pin
Luc Pattyn1-Dec-06 11:31
sitebuilderLuc Pattyn1-Dec-06 11:31 
Hi,

to provide an acurate display, the operating system needs to know the resolution of your monitor.
For MS Windows (XP and others) the default value is set to 96 dpi, which used to be a good
average value before, but may be well below the actual value for a modern monitor.

The theoretical value you need equals the length of your monitor's diagonal in pixels
(this is the square root of horpixels squared plus vert pixels squared !) divided by
same diagonal's length in inches (14, 15, 17, 19, whatever).

Examples: 17 inch monitor with 1280*1024 pixels gives SQRT(1280*1280+1024*1024)/17 = 96.4 dpi !
but 15 inch monitor with 1400*1050 pixels gives 116.7 dpi

To change the setting: right-click the desktop, choose Display Properties, click Advanced button, and look for the DPI Settings combobox. The custom setting is expressed in % not in dpi,
so whatever you calculated you should multiply by 100/96 to get the right percentage.

Warning: if you never cared before, and now increase the dpi setting, every item on your
desktop will become smaller, but it is a required step to get acurate dimensions.

Remark: to counteract the reduction of font sizes, you can ask Windows to use larger fonts
on the desktop (see Display Properties, Appearance, Font size); you can also ask it to use
larger icons...



Luc Pattyn

QuestionRe: How to control the real dimension on screen? Pin
gshen4-Dec-06 6:21
gshen4-Dec-06 6:21 
AnswerRe: How to control the real dimension on screen? Pin
Luc Pattyn4-Dec-06 8:53
sitebuilderLuc Pattyn4-Dec-06 8:53 
GeneralRe: How to control the real dimension on screen? Pin
gshen4-Dec-06 9:04
gshen4-Dec-06 9:04 
GeneralRe: How to control the real dimension on screen? Pin
Luc Pattyn4-Dec-06 9:15
sitebuilderLuc Pattyn4-Dec-06 9:15 
GeneralRe: How to control the real dimension on screen? Pin
gshen4-Dec-06 9:28
gshen4-Dec-06 9:28 
GeneralRe: How to control the real dimension on screen? Pin
Luc Pattyn4-Dec-06 10:05
sitebuilderLuc Pattyn4-Dec-06 10:05 
QuestionDatabase Wizard VS Scripting Pin
mfcuser1-Dec-06 7:15
mfcuser1-Dec-06 7:15 
QuestionFont on Disabled Controls Pin
smarttom991-Dec-06 6:28
smarttom991-Dec-06 6:28 
AnswerRe: Font on Disabled Controls Pin
Dan Neely1-Dec-06 7:05
Dan Neely1-Dec-06 7:05 
Questioncrystal reports adding a pic Pin
Rocky#1-Dec-06 6:24
Rocky#1-Dec-06 6:24 
QuestionDeployment problems Pin
ssoffline1-Dec-06 6:14
ssoffline1-Dec-06 6:14 
QuestionC# & Win32 - Resizing Child Window Pin
bs99991-Dec-06 5:20
bs99991-Dec-06 5:20 
QuestionControlling the source of a drag/drop Pin
Dan Neely1-Dec-06 4:46
Dan Neely1-Dec-06 4:46 
AnswerRe: Controlling the source of a drag/drop Pin
ednrgc1-Dec-06 5:27
ednrgc1-Dec-06 5:27 
GeneralRe: Controlling the source of a drag/drop Pin
Dan Neely1-Dec-06 5:42
Dan Neely1-Dec-06 5:42 
AnswerRe: Controlling the source of a drag/drop Pin
Dave Kreskowiak1-Dec-06 5:40
mveDave Kreskowiak1-Dec-06 5:40 
GeneralRe: Controlling the source of a drag/drop Pin
Dan Neely1-Dec-06 5:42
Dan Neely1-Dec-06 5:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.