|
-
Nov 14th, 1999, 07:19 AM
#1
Thread Starter
New Member
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.
-
Nov 14th, 1999, 07:30 AM
#2
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]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|