Solved

dececting screen mode 800x600

Posted on 1998-11-26
3
160 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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 how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

717 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