Solved

detect the height and width of the computer screen

Posted on 2000-03-21
4
452 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
VBA saving file message display 5 47
Windows Script Host failed (Access is denied.) error 6 83
Copy a row 12 53
Hide vba in gp 7 43
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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

759 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

16 Experts available now in Live!

Get 1:1 Help Now