Results 1 to 2 of 2

Thread: Screen Resolution

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2011
    Posts
    74

    Screen Resolution

    i like to get pixle settings (screen resoultion) to use in a application. any suggestion.

  2. #2
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141

    Re: Screen Resolution

    Code:
    Private Sub Form_Load()
    Dim w As Integer
    Dim h As Integer
    
        w = Screen.Width / Screen.TwipsPerPixelX
        h = Screen.Height / Screen.TwipsPerPixelY
        
        MsgBox h & "x" & w
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width