Solved

dececting screen mode 800x600

Posted on 1998-11-26
3
159 Views
Last Modified: 2010-05-03
Hi, I've written a program and while I've been working on it I've been in 800x600 res. Now I just realised that the stuff on the screen is too much to fit into 640x480.

I dont have time to remake the interface, and with everything on it, I'm not sure if I could remake the interface to fit in 640x480.

I really desperatly need some code or control or something that will have the program check to see what screen mode it is in, and then have it quit or continue as necessary
0
Comment
Question by:xizor
[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
3 Comments
 
LVL 7

Accepted Solution

by:
kamall earned 200 total points
ID: 1447029
Use:

Print Screen.Height / Screen.TwipsPerPixelY
Print Screen.Width / Screen.TwipsPerPixelX

to detect the screen height and width in pixels.

Regards
0
 
LVL 7

Expert Comment

by:kamall
ID: 1447030
Note: The 'Print' in the code above will print the results on the form. In reality, you don't have to use this statement to detect the screen resolution.
0
 
LVL 2

Author Comment

by:xizor
ID: 1447031
Thankyou, I CAN'T Believe that I didn't think of that. Thankyou very much!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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 (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

739 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