Solved

dececting screen mode 800x600

Posted on 1998-11-26
3
154 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
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
kamall earned 200 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Thankyou, I CAN'T Believe that I didn't think of that. Thankyou very much!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now