module1.bas
来自「VB精彩编程100列」· BAS 代码 · 共 11 行
BAS
11 行
Attribute VB_Name = "Module1"
Option Explicit
Public Sub Main()
Dim x, y
x = Screen.Width / Screen.TwipsPerPixelX
y = Screen.Height / Screen.TwipsPerPixelY
MsgBox "您的电脑解析度是" & x & " * " & y
End
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?