?
Solved

detect the height and width of the computer screen

Posted on 2000-03-21
4
Medium Priority
?
458 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 60 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

752 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