📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form form1
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "动画光标"
ClientHeight = 2910
ClientLeft = 2955
ClientTop = 2475
ClientWidth = 5160
ForeColor = &H00000000&
Icon = "form1.frx":0000
LinkTopic = "Form1"
PaletteMode = 1 'UseZOrder
ScaleHeight = 2910
ScaleWidth = 5160
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command3
Caption = "退出"
Height = 375
Left = 3345
TabIndex = 2
Top = 2355
Width = 1320
End
Begin VB.CommandButton command2
Caption = "停止"
Height = 375
Left = 1935
TabIndex = 1
Top = 2355
Width = 1320
End
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 100
Left = 0
Top = 1710
End
Begin VB.CommandButton command1
Caption = "开始"
Height = 375
Left = 525
TabIndex = 0
Top = 2355
Width = 1320
End
Begin VB.Image image1
Height = 690
Index = 9
Left = 2295
Picture = "form1.frx":000C
Top = 780
Visible = 0 'False
Width = 780
End
Begin VB.Image image1
Height = 690
Index = 8
Left = 1845
Picture = "form1.frx":1DCE
Top = 780
Visible = 0 'False
Width = 780
End
Begin VB.Image image1
Height = 690
Index = 7
Left = 1365
Picture = "form1.frx":3B90
Top = 750
Visible = 0 'False
Width = 780
End
Begin VB.Image image1
Height = 690
Index = 6
Left = 1020
Picture = "form1.frx":5952
Top = 750
Visible = 0 'False
Width = 780
End
Begin VB.Image image1
Height = 690
Index = 5
Left = 720
Picture = "form1.frx":7714
Top = 780
Visible = 0 'False
Width = 780
End
Begin VB.Image image1
Height = 690
Index = 4
Left = 420
Picture = "form1.frx":94D6
Top = 795
Visible = 0 'False
Width = 780
End
Begin VB.Image image1
Height = 690
Index = 3
Left = 60
Picture = "form1.frx":B298
Top = 825
Visible = 0 'False
Width = 780
End
Begin VB.Image image1
Height = 690
Index = 2
Left = 1350
Picture = "form1.frx":D05A
Top = 30
Visible = 0 'False
Width = 780
End
Begin VB.Image image1
Height = 690
Index = 1
Left = 615
Picture = "form1.frx":EE1C
Top = 30
Visible = 0 'False
Width = 780
End
Begin VB.Image image1
Height = 690
Index = 0
Left = 90
Picture = "form1.frx":10BDE
Top = 45
Visible = 0 'False
Width = 780
End
End
Attribute VB_Name = "form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i As Integer
Private Sub Timer1_Timer()
' 切换光标图片
Me.MouseIcon = image1(i).Picture
i = (i + 1) Mod 10
End Sub
Private Sub Command1_Click()
Timer1.Enabled = True
' 设置光标为自定义值
Me.MousePointer = vbCustom
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
' 设置光标为默认值
Me.MousePointer = vbDefault
i = 0
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -