?
Solved

dececting screen mode 800x600

Posted on 1998-11-26
3
Medium Priority
?
161 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 800 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…
Suggested Courses
Course of the Month12 days, 14 hours left to enroll

777 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