Getting Screen Resolution

后端 未结 2 1562
名媛妹妹
名媛妹妹 2020-12-06 04:25

I need to change screen resolutions using my application.

How to:

  1. Read current resolution
  2. Changing it using my application and then returning
2条回答
  •  忘掉有多难
    2020-12-06 05:10

    How to get current screen resolution

    Public Function ScreenResolution() As String
            Dim intX As Integer = Screen.PrimaryScreen.Bounds.Width
            Dim intY As Integer = Screen.PrimaryScreen.Bounds.Height
            Return intX & " × " & intY
    End Function
    

    How to change current screen resolution — solution

提交回复
热议问题