Solved

detect the height and width of the computer screen

Posted on 2000-03-21
4
457 Views
Last Modified: 2010-05-02
Can expert show me how to detect the height, width of the computer screen ?
0
Comment
Question by:sing_web
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
Jeremy_D earned 15 total points
ID: 2645335
height = Screen.Height
width = Screen.Width

Neat huh?
0
 

Author Comment

by:sing_web
ID: 2645343
is there a way to convert screen.height and
screen.width into the screnn resolution ?
0
 
LVL 4

Expert Comment

by:Jeremy_D
ID: 2645367
Yep:

WidthInPixels = Screen.Width \ Screen.TwipsPerPixelX
HeightInPixels = Screen.Height \ Screen.TwipsPerPixelY
0
 

Author Comment

by:sing_web
ID: 2645385
is there a way to convert screen.height and
screen.width into the screnn resolution ?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

688 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