📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
AutoRedraw = -1 'True
BorderStyle = 0 'None
Caption = "Form2"
ClientHeight = 5220
ClientLeft = 0
ClientTop = 0
ClientWidth = 9240
DrawWidth = 5
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
Moveable = 0 'False
ScaleHeight = 5220
ScaleWidth = 9240
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
WindowState = 2 'Maximized
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
If Button = 1 Then
x0 = x
y0 = y
f = True
End If
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
If f = True And Button = 1 Then
Form2.Line (x0, y0)-(x, y), vbRed
x0 = x
y0 = y
End If
End Sub
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
If Button = 1 Then
f = False
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -