VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get current resolution using GetSystemMetrics API

by Karthikeyan (187 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 1st November 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Get current resolution using GetSystemMetrics API

API Declarations


Const SM_CXSCREEN = 0
Const SM_CYSCREEN = 1

Rate Get current resolution using GetSystemMetrics API



MsgBox "Current Screen Resolution is " & GetSystemMetrics(SM_CXSCREEN) & " x " & GetSystemMetrics(SM_CYSCREEN)
End
End Sub

Download this snippet    Add to My Saved Code

Get current resolution using GetSystemMetrics API Comments

No comments have been posted about Get current resolution using GetSystemMetrics API. Why not be the first to post a comment about Get current resolution using GetSystemMetrics API.

Post your comment

Subject:
Message:
0/1000 characters