📄 form7.frm
字号:
VERSION 5.00
Begin VB.Form Form7
Caption = "B-2"
ClientHeight = 5415
ClientLeft = 60
ClientTop = 450
ClientWidth = 6690
LinkTopic = "Form7"
ScaleHeight = 5415
ScaleWidth = 6690
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "计算圆周长"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 960
TabIndex = 5
Top = 3120
Width = 1815
End
Begin VB.CommandButton Command1
Caption = "计算圆面积"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 960
TabIndex = 4
Top = 1800
Width = 1935
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 3240
TabIndex = 1
Top = 600
Width = 2175
End
Begin VB.Label Label5
BorderStyle = 1 'Fixed Single
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 3240
TabIndex = 3
Top = 3000
Width = 1935
End
Begin VB.Label Label4
BorderStyle = 1 'Fixed Single
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 3240
TabIndex = 2
Top = 1680
Width = 1935
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "请输入圆半径"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 960
TabIndex = 0
Top = 720
Width = 2055
End
End
Attribute VB_Name = "Form7"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Const pi = 3.14
Dim r As Single
Dim s As Single
Dim c As Single
Private Sub Command1_Click()
r = Val(Text1.Text)
s = pi * r * r
Label4.Caption = Str(s)
End Sub
Private Sub Label2_Click()
End Sub
Private Sub Command2_Click()
r = Val(Text1.Text)
c = pi * r * 2
Label5.Caption = Str(c)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -