Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Dim D As Double
Dim P0 As Double
D = Val(TextBox3.Text)
P0 = 1.18 / D ^ 0.5
TextBox4.Text = P0
End Sub
Private Sub Command1_Click()
D = Val(Text7.Text)
P0 = 1.18 / D ^ 0.5
Text4.Text = Format(P0, "0.00000")'调整下格式吧,就看到正确答案了,你的答案是1.96666666666667E-02,由于太长,显示不出来
End Sub
Private Sub Command2_Click()
Text4.Text = ""
Text7.Text = ""
End Sub