📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BackColor = &H00FFFFFF&
Caption = "Form1"
ClientHeight = 4275
ClientLeft = 60
ClientTop = 345
ClientWidth = 6975
LinkTopic = "Form1"
ScaleHeight = 4275
ScaleWidth = 6975
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 200
Left = 240
Top = 360
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 615
Left = 4560
TabIndex = 1
Top = 3120
Width = 855
End
Begin VB.CommandButton Command1
Caption = "开始"
Height = 615
Left = 1440
TabIndex = 0
Top = 3120
Width = 855
End
Begin VB.Image Image3
Height = 2205
Left = -720
Picture = "Form1.frx":0000
Stretch = -1 'True
Top = 0
Width = 1680
End
Begin VB.Image Image2
Appearance = 0 'Flat
Height = 2205
Left = 5160
Picture = "Form1.frx":1AEA
Stretch = -1 'True
Top = 0
Visible = 0 'False
Width = 1680
End
Begin VB.Image Image1
Appearance = 0 'Flat
Height = 2205
Left = 3360
Picture = "Form1.frx":3AD1
Stretch = -1 'True
Top = 0
Visible = 0 'False
Width = 1680
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Command1.Caption = "开始" Then
Timer1.Enabled = True
Command1.Caption = "停止"
Else
Timer1.Enabled = False
Command1.Caption = "开始"
End If
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
End
End Sub
Private Sub Image3_Click()
End Sub
Private Sub Timer1_Timer()
If Image3.Left > Form1.ScaleWidth Then
Image3.Left = Form1.ScaleLeft - 800
End If
Image3.Move Image3.Left + 200
If Image3.Picture = Image1.Picture Then
Image3.Picture = Image2.Picture
Else
Image3.Picture = Image1.Picture
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -