Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determining screen mode is current 1

Status
Not open for further replies.

Adric

Programmer
Jun 25, 2001
24
US
Is there a way to determine what screen mode the computer is currently using. such as 800x600.
 
Simplest way is to check out the Width and Height properties of the Screen object
 
Yes, use the Screen object:

Screen.Height
Screen.Width

:) Best Regards and many Thanks!
Michael G. Bronner X-)

"They who drink beer will think beer." Washington Irving
 
Don't forget to format it from teips to pixels

height = screen.height/screen.twipsPerPixelY
width = screen.width/screen.twipsPerPixelX

/ola
 
Don't forget to format it from twips to pixels

height = screen.height/screen.twipsPerPixelY
width = screen.width/screen.twipsPerPixelX

/ola
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top