📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 2745
ClientLeft = 120
ClientTop = 420
ClientWidth = 4905
LinkTopic = "Form1"
ScaleHeight = 2745
ScaleWidth = 4905
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command8
Caption = "Cancel"
Height = 375
Left = 2400
TabIndex = 13
Top = 2160
Width = 1455
End
Begin VB.CommandButton Command7
Caption = "OK"
Default = -1 'True
Height = 375
Left = 600
TabIndex = 3
Top = 2160
Width = 1455
End
Begin VB.CommandButton Command6
Caption = "-"
Height = 375
Left = 3840
TabIndex = 9
Top = 960
Width = 375
End
Begin VB.CommandButton Command5
Caption = "+"
Height = 375
Left = 3840
TabIndex = 8
Top = 360
Width = 375
End
Begin VB.CommandButton Command4
Caption = "-"
Height = 375
Left = 2400
TabIndex = 7
Top = 960
Width = 375
End
Begin VB.CommandButton Command3
Caption = "+"
Height = 375
Left = 2400
TabIndex = 6
Top = 360
Width = 375
End
Begin VB.CommandButton Command2
Caption = "-"
Height = 375
Left = 1080
TabIndex = 5
Top = 960
Width = 375
End
Begin VB.CommandButton Command1
Caption = "+"
Height = 375
Left = 1080
TabIndex = 4
Top = 360
Width = 375
End
Begin VB.Label Label6
Caption = "Inches"
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3000
TabIndex = 12
Top = 1440
Width = 855
End
Begin VB.Label Label5
Caption = "Feet"
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1680
TabIndex = 11
Top = 1440
Width = 735
End
Begin VB.Label Label4
Caption = "Yards"
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 360
TabIndex = 10
Top = 1440
Width = 735
End
Begin VB.Label Label3
Alignment = 2 'Center
Caption = "0"
BeginProperty Font
Name = "MS Sans Serif"
Size = 18
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 3000
TabIndex = 2
Top = 480
Width = 615
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = "0"
BeginProperty Font
Name = "MS Sans Serif"
Size = 18
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 1680
TabIndex = 1
Top = 480
Width = 495
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "0"
BeginProperty Font
Name = "MS Sans Serif"
Size = 18
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 360
TabIndex = 0
Top = 480
Width = 495
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 Val(Label1.Caption) <= 8 Then
Label1.Caption = Val(Label1.Caption) + 1
End If
End Sub
Private Sub Command2_Click()
If Val(Label1.Caption) >= 1 Then
Label1.Caption = Val(Label1.Caption) - 1
End If
End Sub
Private Sub Command3_Click()
If Val(Label2.Caption) <= 1 Then
Label2.Caption = Val(Label2.Caption) + 1
End If
End Sub
Private Sub Command4_Click()
If Val(Label2.Caption) >= 1 Then
Label2.Caption = Val(Label2.Caption) - 1
End If
End Sub
Private Sub Command5_Click()
If Val(Label3.Caption) <= 10 Then
Label3.Caption = Val(Label3.Caption) + 1
End If
End Sub
Private Sub Command6_Click()
If Val(Label3.Caption) >= 1 Then
Label3.Caption = Val(Label3.Caption) - 1
End If
End Sub
Private Sub Command7_Click()
End
End Sub
Private Sub Command8_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -