• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 165
  • Last Modified:

dececting screen mode 800x600

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
xizor
Asked:
xizor
  • 2
1 Solution
 
kamallCommented:
Use:

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

to detect the screen height and width in pixels.

Regards
0
 
kamallCommented:
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
 
xizorAuthor Commented:
Thankyou, I CAN'T Believe that I didn't think of that. Thankyou very much!
0

Featured Post

Industry Leaders: 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!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now