There are a couple of ways to do this but the basic principle is the same. Here are a couple of ways to do this:
1) As a string function Public Function ScreenResolution() As String
2) Broken down into two different functions Public Function ScreenWidth() As Integer Public Function ScreenHeight() As Integer
3) Copy and paste the below code into your own function or procedure and use it that way. Dim X As Integer = Screen.PrimaryScreen.Bounds.Width |
Tutorials > VB Tutorials >