form2.frm
来自「电子教鞭,一个可以在电脑屏幕上画画,作批注的软件」· FRM 代码 · 共 48 行
FRM
48 行
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 + =
减小字号Ctrl + -
显示快捷键?