📄 form6.frm
字号:
VERSION 5.00
Begin VB.Form Form6
Caption = "B-1"
ClientHeight = 5925
ClientLeft = 60
ClientTop = 450
ClientWidth = 9555
LinkTopic = "Form6"
ScaleHeight = 5925
ScaleWidth = 9555
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "摄氏转华氏"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 5520
TabIndex = 5
Top = 3840
Width = 2055
End
Begin VB.CommandButton Command1
Caption = "华氏转摄氏"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 1680
TabIndex = 4
Top = 3840
Width = 1935
End
Begin VB.TextBox Text2
Height = 975
Left = 5040
TabIndex = 3
Top = 2040
Width = 3135
End
Begin VB.TextBox Text1
Height = 1095
Left = 960
TabIndex = 2
Top = 1920
Width = 3015
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = "摄氏温度"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 5400
TabIndex = 1
Top = 960
Width = 2295
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "华氏温度"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 1560
TabIndex = 0
Top = 960
Width = 2055
End
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim a As Single
Dim b As Single
Private Sub Command1_Click()
a = Val(Text1.Text)
b = 5 / 9 * (a - 32)
Text2.Text = Str(b)
End Sub
Private Sub Command2_Click()
a = Val(Text2.Text)
b = 9 / 5 * a + 32
Text1.Text = Str(b)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -