ScreenResolution (1 Viewer)

AccessAmateur

Registered User.
Local time
Today, 14:14
Joined
Feb 13, 2003
Messages
30
How Do I find out what the screen resolution setting is? I am using MoveSize to position a form (used as a control box) on another form but if I position it correctly for a 1024x768 monitor is is irretrievably pushed off screen on an 800x600 monitor.
 

AccessAmateur

Registered User.
Local time
Today, 14:14
Joined
Feb 13, 2003
Messages
30
Using modules is new to me, how do I call this module from a VBA routine so that I can do something like:

Select Case Resolution

Case 800x600
MoveSize the form to location xy

Case 1024x768
MoveSize the form to location xy

etc

Thanks
 

Peter D

Registered User.
Local time
Today, 20:14
Joined
Sep 7, 2000
Messages
188
Select case xg_GetScreenResolution()
Case "800x600"
MoveSize the form to location xy

Case "1024x768"
MoveSize the form to location xy
Case Else
End Select

Hope this helps,
 

Users who are viewing this thread

Top Bottom