M
Miha Abrahamsberg
Hi,
I use:
########
Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As
Long
Public Function GetScreenResolution() As String
'returns the screen resolution
'GetSystemMetrics (0) is the Width
'GetSystemMetrics (1) is the Height
GetScreenResolution = GetSystemMetrics(0) & "x" & GetSystemMetrics(1)
End Function
########
to get the user's screen resolution and I adjust certain forms' (size, font)
according to it.
But I have a problem where some of "my end users" use 2 screens (multiple
desktops) and one screen uses higher resolution then the other.
In such cases the function GetScreenResolution returns the default's screen
resolution.
How should I adjust the code to be able to get both screens resolution
information?
Miha
I use:
########
Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As
Long
Public Function GetScreenResolution() As String
'returns the screen resolution
'GetSystemMetrics (0) is the Width
'GetSystemMetrics (1) is the Height
GetScreenResolution = GetSystemMetrics(0) & "x" & GetSystemMetrics(1)
End Function
########
to get the user's screen resolution and I adjust certain forms' (size, font)
according to it.
But I have a problem where some of "my end users" use 2 screens (multiple
desktops) and one screen uses higher resolution then the other.
In such cases the function GetScreenResolution returns the default's screen
resolution.
How should I adjust the code to be able to get both screens resolution
information?
Miha