Display Resolution

Fox

Active Member
Licensed User
Longtime User
How can i check the Display Resolution and say if i have 240 x 400 then... or if i have 320 x 480... by Code not by Designer...!?
 

magalt

Member
Licensed User
Longtime User
Maybe I'm wrong but one size does not include the size of the title bar (the height for landscape).

Marco
 
Upvote 0

Fox

Active Member
Licensed User
Longtime User
Thanks for both answers i have tried this:

Dim resolution As Int
Dim p As Phone
resolution=GetDeviceLayoutValues.Height
If resolution >= 320 Then
ListView1.SingleLineLayout.Label.TextSize = 16dip
Else
ListView1.SingleLineLayout.Label.TextSize = 7dip
End If
 
Last edited:
Upvote 0
Top