📄 form6.frm
字号:
VERSION 5.00
Begin VB.Form Form6
Caption = "双层板舱壁剖面模数和惯性矩计算"
ClientHeight = 6975
ClientLeft = 60
ClientTop = 450
ClientWidth = 10125
LinkTopic = "Form6"
ScaleHeight = 6975
ScaleWidth = 10125
StartUpPosition = 3 'Windows Default
Begin VB.PictureBox Picture1
Height = 2775
Left = 4560
Picture = "Form6.frx":0000
ScaleHeight = 2715
ScaleWidth = 4995
TabIndex = 13
Top = 3480
Width = 5055
End
Begin VB.CommandButton Command3
Caption = "退出"
Height = 650
Left = 480
TabIndex = 12
Top = 5520
Width = 1500
End
Begin VB.TextBox Text6
Height = 650
Left = 2400
TabIndex = 11
Top = 4680
Width = 1500
End
Begin VB.TextBox Text5
Height = 650
Left = 2400
TabIndex = 10
Top = 3600
Width = 1500
End
Begin VB.TextBox Text4
Height = 650
Left = 7800
TabIndex = 9
Top = 1800
Width = 1500
End
Begin VB.TextBox Text3
Height = 650
Left = 2400
TabIndex = 8
Top = 1920
Width = 1500
End
Begin VB.TextBox Text2
Height = 650
Left = 7800
TabIndex = 7
Top = 600
Width = 1500
End
Begin VB.TextBox Text1
Height = 650
Left = 2400
TabIndex = 6
Top = 720
Width = 1500
End
Begin VB.CommandButton Command2
Caption = "剖面惯性矩(M^4)"
Height = 650
Left = 480
TabIndex = 5
Top = 4680
Width = 1500
End
Begin VB.CommandButton Command1
Caption = "剖面模数W(M^3)"
Height = 650
Left = 480
TabIndex = 4
Top = 3600
Width = 1500
End
Begin VB.Label Label4
Caption = " 隔板的厚度 tw(M)"
Height = 645
Left = 5400
TabIndex = 3
Top = 1920
Width = 1500
End
Begin VB.Label Label3
Caption = "双层板隔壁的板度 tp(M)"
Height = 650
Left = 600
TabIndex = 2
Top = 1920
Width = 1500
End
Begin VB.Label Label2
Caption = "隔板平均间距 s(M)"
Height = 650
Left = 5400
TabIndex = 1
Top = 720
Width = 1500
End
Begin VB.Label Label1
Caption = "双层板的间距 b(M)"
Height = 650
Left = 720
TabIndex = 0
Top = 720
Width = 1500
End
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim b As Single, s As Single, tp As Single, tw As Single, f As Single, W As Single, I As Single
Private Sub Command1_Click()
On Error GoTo OOPS
b = Val(Text1.Text)
s = Val(Text2.Text)
tp = Val(Text3.Text)
tw = Val(Text4.Text)
If 0.3 * (s / b) ^ (2 / 3) <= 1 Then f = 0.3 * (s / b) ^ (2 / 3)
If 0.3 * (s / b) ^ (2 / 3) > 1 Then f = 1
W = b * (f * s * tp + b * tw / 6) * 10 ^ 3
Text5.Text = W
OOPS:
I = MsgBox("输入数据不合理,建议检查输入数据!", 256 + 64)
End Sub
Private Sub Command2_Click()
On Error GoTo OOPS
I = 5 * (f * s * tp + b * tw / 6) * b ^ 2 * 10 ^ 4
Text6.Text = I
OOPS:
I = MsgBox("输入数据不合理,建议检查输入数据!", 256 + 64)
End Sub
Private Sub Command3_Click()
Form6.Hide
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -