Results 1 to 2 of 2

Thread: get monitor resolution?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Location
    Iran
    Posts
    8

    Wink get monitor resolution?

    hello
    I'm need a way for get monitor resolution ?
    thank

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    VB Code:
    1. '*******************************************************************************
    2. ' SCREENSIZE (SUB)
    3. '
    4. ' DESCRIPTION:
    5. ' DETERMINE SCREEN SIZE
    6. '*******************************************************************************
    7.  
    8. Sub SCREENSIZE()
    9.    
    10.     Dim iWidth As Integer
    11.    
    12.     Dim iHeight As Integer
    13.    
    14.     iWidth = Screen.Width / Screen.TwipsPerPixelX
    15.    
    16.     iHeight = Screen.Height / Screen.TwipsPerPixelY
    17.    
    18.     RESOLUTION = iWidth & "X" & iHeight
    19.  
    20.     ' DO NOT ALLOW ENTRY IF RESOLUTION IS NOT
    21.         ' AT MAXIMUM
    22.        
    23.         If RESOLUTION <> "1024X768" Then
    24.            
    25.             MsgBox "To properly display this application, your video display " & _
    26.                 "must be set to 1024x768.  Program CANNOT continue !", _
    27.                 vbInformation + vbOKOnly, "Video Display problems"
    28.            
    29.             mdiMain.Timer1.Enabled = True
    30.            
    31.             Exit Sub
    32.            
    33.         End If
    34.    
    35. End Sub
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

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