📄 control panel.frm
字号:
VERSION 5.00
Begin VB.Form Form4
BorderStyle = 4 'Fixed ToolWindow
Caption = "Control Panel"
ClientHeight = 1620
ClientLeft = 45
ClientTop = 315
ClientWidth = 3360
LinkTopic = "Form4"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1620
ScaleWidth = 3360
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.TextBox Text1
Height = 285
Left = 0
TabIndex = 5
Text = "1"
Top = 1320
Width = 3375
End
Begin VB.HScrollBar HScroll1
Height = 255
Left = 0
Max = 999
Min = 1
TabIndex = 3
Top = 720
Value = 1
Width = 3375
End
Begin VB.CommandButton Button1
Caption = "4"
BeginProperty Font
Name = "Webdings"
Size = 12
Charset = 2
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 0
TabIndex = 2
Top = 120
Width = 960
End
Begin VB.CommandButton Button2
Caption = "<"
BeginProperty Font
Name = "Webdings"
Size = 12
Charset = 2
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 1080
TabIndex = 1
Top = 120
Width = 1080
End
Begin VB.CommandButton Button3
Caption = ";"
BeginProperty Font
Name = "Webdings"
Size = 12
Charset = 2
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 2280
TabIndex = 0
Top = 120
Width = 1080
End
Begin VB.Label Label2
Caption = "Imagen:"
Height = 255
Left = 0
TabIndex = 6
Top = 1080
Width = 615
End
Begin VB.Label Label1
Caption = "Velocidad:"
Height = 255
Left = 0
TabIndex = 4
Top = 480
Width = 3255
End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private tim
Private Sub Button1_Click()
Form2.Timer1.Enabled = True
End Sub
Private Sub Button2_Click()
Form2.Timer1.Enabled = False
Form2.var = 1
End Sub
Private Sub Button3_Click()
Form2.Timer1.Enabled = False
End Sub
Private Sub HScroll1_Change()
tim = 1000
tim = (tim - HScroll1.Value)
Label1.Caption = "Velocidad: " & (tim / 10) & " Decimas de segundo."
Form2.Timer1.Interval = tim
End Sub
Private Sub Text1_Change()
On Error GoTo er
If Text1.Text < 1 Then
Text1.Text = 1
End If
Form2.var = Val(Text1.Text)
Exit Sub
er:
Text1.Text = 1
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -