How can i get the current screen resolution in VB 6?
Do i need to call an API function?
If so, what is it and how is declared and used?
Thanks.
Printable View
How can i get the current screen resolution in VB 6?
Do i need to call an API function?
If so, what is it and how is declared and used?
Thanks.
Try:
Code:Private Sub Command1_Click()
With Screen
MsgBox (.Width / .TwipsPerPixelX) & "x" & (.Height / .TwipsPerPixelY)
End With
End Sub
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]