form5.frm

来自「型材剖面模数计算,船舶型材计算及输入,查询操作.」· FRM 代码 · 共 155 行

FRM
155
字号
VERSION 5.00
Begin VB.Form Form5 
   Caption         =   "槽行舱壁剖面模数和惯性矩计算"
   ClientHeight    =   6375
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   10815
   LinkTopic       =   "Form5"
   ScaleHeight     =   6375
   ScaleWidth      =   10815
   StartUpPosition =   3  'Windows Default
   Begin VB.PictureBox Picture1 
      Height          =   3375
      Left            =   3840
      Picture         =   "Form5.frx":0000
      ScaleHeight     =   3315
      ScaleWidth      =   6915
      TabIndex        =   13
      Top             =   2880
      Width           =   6975
   End
   Begin VB.CommandButton Command3 
      Caption         =   "退出"
      Height          =   650
      Left            =   360
      TabIndex        =   12
      Top             =   4920
      Width           =   1500
   End
   Begin VB.CommandButton Command2 
      Caption         =   "惯性矩I(CM^4)"
      Height          =   650
      Left            =   360
      TabIndex        =   11
      Top             =   4080
      Width           =   1500
   End
   Begin VB.CommandButton Command1 
      Caption         =   "剖面模数W(CM^3)"
      Height          =   650
      Left            =   360
      TabIndex        =   10
      Top             =   3000
      Width           =   1500
   End
   Begin VB.TextBox Text6 
      Height          =   650
      Left            =   2160
      TabIndex        =   9
      Top             =   4080
      Width           =   1500
   End
   Begin VB.TextBox Text5 
      Height          =   650
      Left            =   2160
      TabIndex        =   8
      Top             =   3000
      Width           =   1500
   End
   Begin VB.TextBox Text4 
      Height          =   650
      Left            =   6240
      TabIndex        =   7
      Top             =   1560
      Width           =   1500
   End
   Begin VB.TextBox Text3 
      Height          =   650
      Left            =   2280
      TabIndex        =   6
      Top             =   1680
      Width           =   1500
   End
   Begin VB.TextBox Text2 
      Height          =   650
      Left            =   6240
      TabIndex        =   5
      Top             =   480
      Width           =   1500
   End
   Begin VB.TextBox Text1 
      Height          =   650
      Left            =   2160
      TabIndex        =   4
      Top             =   480
      Width           =   1500
   End
   Begin VB.Label Label4 
      Caption         =   "槽行舱壁板厚度        t(MM)"
      Height          =   645
      Left            =   4440
      TabIndex        =   3
      Top             =   1560
      Width           =   1500
   End
   Begin VB.Label Label3 
      Caption         =   "   槽行深度           dw(MM)"
      Height          =   600
      Left            =   360
      TabIndex        =   2
      Top             =   1560
      Width           =   1500
   End
   Begin VB.Label Label2 
      Caption         =   "槽行斜面部分宽度      b(M)"
      Height          =   645
      Left            =   4440
      TabIndex        =   1
      Top             =   480
      Width           =   1500
   End
   Begin VB.Label Label1 
      Caption         =   "槽形平面部分宽度      a  (M)"
      Height          =   650
      Left            =   360
      TabIndex        =   0
      Top             =   480
      Width           =   1500
   End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim a As Single, b As Single, dw As Single, W As Single, I As Single
Private Sub Command1_Click()
On Error GoTo OOPS
a = Val(Text1.Text)
b = Val(Text2.Text)
dw = Val(Text3.Text)
t = Val(Text4.Text)
W = dw * t * (a - b / 3)
Text5.Text = W
OOPS:
I = MsgBox("输入数据不合理,建议检查输入数据!", 256 + 64)
End Sub
Private Sub Command2_Click()
On Error GoTo OOPS
a = Val(Text1.Text)
b = Val(Text2.Text)
dw = Val(Text3.Text)
t = Val(Text4.Text)
I = 1 / 20 * dw ^ 2 * t * (a + b / 3)
Text6.Text = I
OOPS:
I = MsgBox("输入数据不合理,建议检查输入数据!", 256 + 64)
End Sub

Private Sub Command3_Click()
Form5.Hide
End Sub


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?