⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form8.frm

📁 计算水力水的管流
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form8 
   Caption         =   "临界水深的计算(1——3)"
   ClientHeight    =   5535
   ClientLeft      =   60
   ClientTop       =   420
   ClientWidth     =   7305
   LinkTopic       =   "Form8"
   ScaleHeight     =   5535
   ScaleWidth      =   7305
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text5 
      Height          =   615
      Left            =   2520
      TabIndex        =   7
      Top             =   2640
      Width           =   2415
   End
   Begin VB.TextBox Text4 
      Height          =   615
      Left            =   4440
      TabIndex        =   6
      Top             =   1200
      Width           =   2175
   End
   Begin VB.TextBox Text3 
      Height          =   615
      Left            =   720
      TabIndex        =   5
      Top             =   1200
      Width           =   1935
   End
   Begin VB.TextBox Text2 
      Height          =   615
      Left            =   4440
      TabIndex        =   4
      Top             =   240
      Width           =   2175
   End
   Begin VB.TextBox Text1 
      Height          =   615
      Left            =   720
      TabIndex        =   3
      Top             =   240
      Width           =   1935
   End
   Begin VB.CommandButton Command3 
      Caption         =   "退出"
      Height          =   615
      Left            =   5280
      TabIndex        =   2
      Top             =   4800
      Width           =   1695
   End
   Begin VB.CommandButton Command2 
      Caption         =   "清除"
      Height          =   615
      Left            =   2880
      TabIndex        =   1
      Top             =   4800
      Width           =   1815
   End
   Begin VB.CommandButton Command1 
      Caption         =   "计算"
      Height          =   615
      Left            =   240
      TabIndex        =   0
      Top             =   4800
      Width           =   1815
   End
   Begin VB.Label Label6 
      Height          =   615
      Left            =   240
      TabIndex        =   13
      Top             =   3960
      Width           =   6855
   End
   Begin VB.Label Label5 
      Caption         =   "临界水深H"
      Height          =   615
      Left            =   1680
      TabIndex        =   12
      Top             =   2640
      Width           =   615
   End
   Begin VB.Label Label4 
      Caption         =   "动能校正系数a"
      Height          =   615
      Left            =   3720
      TabIndex        =   11
      Top             =   1200
      Width           =   735
   End
   Begin VB.Label Label3 
      Caption         =   "流量Q"
      Height          =   615
      Left            =   120
      TabIndex        =   10
      Top             =   1200
      Width           =   615
   End
   Begin VB.Label Label2 
      Caption         =   "边坡系数M"
      Height          =   615
      Left            =   3720
      TabIndex        =   9
      Top             =   240
      Width           =   735
   End
   Begin VB.Label label1 
      Caption         =   "底宽b"
      Height          =   615
      Left            =   120
      TabIndex        =   8
      Top             =   240
      Width           =   615
   End
End
Attribute VB_Name = "Form8"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim b As Single, m As Single, q As Single, h As Single, g As Single, x As Single

b = Val(Text1.Text)
m = Val(Text2.Text)
q = Val(Text3.Text)
a = Val(Text4.Text)
If b <> 0 And q <> 0 And a >= 1 Then
h = 0
x = (a * q ^ 2) / 9.81
Do While ((((b + (m * h)) * h) ^ 3 / (b + 2 * m * h)) - x) / x < 0.001
h = h + 0.0001
Loop
Text5.Text = Str(h)
Else
Label6.Caption = "请输入除H外的所有数据"
Text1.SetFocus
End If





End Sub

Private Sub Command2_Click()
 Text1.Text = ""
 Text2.Text = ""
 Text3.Text = ""
 Text4.Text = ""
 Text5.Text = ""
 Label6.Caption = ""
 Text1.SetFocus
End Sub

Private Sub Command3_Click()
Form8.Hide
Form6.Show
End Sub

⌨️ 快捷键说明

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