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!

Screen Resolution

Status
Not open for further replies.

ChrisAgius

Programmer
Sep 27, 2000
51
MT
I am trying to find the screen size. If it is (800 or 1024)
using the _Screen.width property. It works perfectly when I have the Foxpro main window opened but when I run the EXE on its own the Conditions which check the size are skipped because the _screen property is enabled by the Foxpro Main window. Is there an alternate solution how can I find the screen size.

Thanks A lot.
 
Check out the function:

SYSMETRIC(nScreenElement) in the MSDN. This one returns the current screen width.

nScreenElement = 1 returns the width
nScreenElement = 2 returns the height

HTH,
Weedz (The Grassman)
veld4663@exact.nl

They cling emotionally to code and fix development rather than choosing practices based on analytical assesments of what works best.

After the GoldRush - Steve McConnell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top