Private Sub Command1_Click()
Dim Z, a, b As Double
Dim msg1 As Integer
Z = Text1.Text
If Z>0 Then
a = 52273.084 + (2852.18 - Z) * Math.Cos(2.478014981)
b = 80923.558 + (2852.18 - Z) * Math.Sin(2.478014981)
Else
msg1 = MsgBox("输入数据有误,请重新输入!", 5+ 32 + 0, "数据检查")
If msg1=4 Then
Text1.Text=" "
Text1.SetFocus
Text1.Text = " "
End If
Text2.Text = a
Text3.Text = b
End Sub
还有一个问题就是怎样在vb6.0中实现 结束按钮的代码编写 在vb.net是用的Me.Close()