📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 7065
ClientLeft = 60
ClientTop = 345
ClientWidth = 10575
LinkTopic = "Form1"
ScaleHeight = 7065
ScaleWidth = 10575
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command4
Caption = "计 算"
Height = 495
Left = 8280
TabIndex = 36
Top = 5280
Width = 1215
End
Begin VB.Frame Frame9
Caption = "输出"
Height = 1215
Left = 7320
TabIndex = 34
Top = 3600
Width = 2775
Begin VB.Label Label14
Height = 855
Left = 240
TabIndex = 35
Top = 240
Width = 2175
End
End
Begin VB.Frame Frame8
Caption = " 请输入"
Height = 2055
Left = 7320
TabIndex = 27
Top = 1080
Width = 3015
Begin VB.TextBox Text10
Height = 270
Left = 1080
TabIndex = 30
Top = 1440
Width = 1815
End
Begin VB.TextBox Text9
Height = 270
Left = 1080
TabIndex = 29
Top = 840
Width = 1815
End
Begin VB.TextBox Text5
Height = 270
Left = 1080
TabIndex = 28
Top = 240
Width = 1815
End
Begin VB.Label Label13
AutoSize = -1 'True
Caption = "大地方位角"
Height = 180
Left = 120
TabIndex = 33
Top = 1440
Width = 900
End
Begin VB.Label Label12
AutoSize = -1 'True
Caption = "大地线长"
Height = 180
Left = 240
TabIndex = 32
Top = 840
Width = 720
End
Begin VB.Label Label11
AutoSize = -1 'True
Caption = "大地纬度"
Height = 180
Left = 240
TabIndex = 31
Top = 240
Width = 720
End
End
Begin VB.CommandButton Command3
Caption = "计 算"
Height = 495
Left = 4440
TabIndex = 26
Top = 5400
Width = 1215
End
Begin VB.Frame Frame7
Caption = "输出"
Height = 1215
Left = 3720
TabIndex = 24
Top = 3600
Width = 2775
Begin VB.Label Label7
Height = 855
Left = 240
TabIndex = 25
Top = 240
Width = 2175
End
End
Begin VB.Frame Frame6
Caption = " 请输入"
Height = 2055
Left = 3720
TabIndex = 17
Top = 1080
Width = 3015
Begin VB.TextBox Text8
Height = 270
Left = 1080
TabIndex = 20
Top = 240
Width = 1815
End
Begin VB.TextBox Text7
Height = 270
Left = 1080
TabIndex = 19
Top = 840
Width = 1815
End
Begin VB.TextBox Text6
Height = 270
Left = 1080
TabIndex = 18
Top = 1440
Width = 1815
End
Begin VB.Label Label10
AutoSize = -1 'True
Caption = "大地纬度"
Height = 180
Left = 240
TabIndex = 23
Top = 240
Width = 720
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "大地高:"
Height = 180
Left = 240
TabIndex = 22
Top = 840
Width = 720
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "大地方位角"
Height = 180
Left = 120
TabIndex = 21
Top = 1440
Width = 900
End
End
Begin VB.CommandButton Command2
Caption = "退 出"
Height = 495
Left = 4560
TabIndex = 16
Top = 6480
Width = 1215
End
Begin VB.Frame Frame3
Caption = "方向改正"
Height = 5535
Left = 7200
TabIndex = 2
Top = 720
Width = 3375
End
Begin VB.Frame Frame2
Caption = "标高差改正"
Height = 5535
Left = 3600
TabIndex = 1
Top = 720
Width = 3375
End
Begin VB.Frame Frame1
Caption = "垂线偏差改正"
Height = 5535
Left = 240
TabIndex = 0
Top = 720
Width = 3255
Begin VB.CommandButton Command1
Caption = "计 算"
Height = 495
Left = 840
TabIndex = 15
Top = 4800
Width = 1215
End
Begin VB.Frame Frame5
Caption = "输出"
Height = 1215
Left = 360
TabIndex = 13
Top = 2880
Width = 2775
Begin VB.Label Label6
Height = 855
Left = 360
TabIndex = 14
Top = 240
Width = 2175
End
End
Begin VB.Frame Frame4
Caption = " 请输入"
Height = 2055
Left = 240
TabIndex = 4
Top = 360
Width = 2895
Begin VB.TextBox Text4
Height = 270
Left = 960
TabIndex = 12
Top = 1560
Width = 1815
End
Begin VB.TextBox Text3
Height = 270
Left = 960
TabIndex = 11
Top = 1080
Width = 1815
End
Begin VB.TextBox Text2
Height = 270
Left = 960
TabIndex = 10
Top = 720
Width = 1815
End
Begin VB.TextBox Text1
Height = 270
Left = 960
TabIndex = 9
Top = 240
Width = 1815
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "天顶距(Z)"
Height = 180
Left = 120
TabIndex = 8
Top = 1560
Width = 810
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "Am:"
Height = 180
Left = 240
TabIndex = 7
Top = 1080
Width = 360
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "垂偏y分量"
Height = 180
Left = 120
TabIndex = 6
Top = 720
Width = 810
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "垂偏x分量"
Height = 180
Left = 120
TabIndex = 5
Top = 240
Width = 810
End
End
End
Begin VB.Label Label1
Caption = "三差改正计算"
BeginProperty Font
Name = "隶书"
Size = 21.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 3960
TabIndex = 3
Top = 0
Width = 2775
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
qx = Val(Text1.Text)
qy = Val(Text2.Text)
a = Val(Text3.Text)
z = Val(Text4.Text)
jieguo = -(qx * Sin(a) - qy * Cos(a)) / Tan(z)
Label6.Caption = "计算出的垂偏改正为:" + Format(jieguo, "0.0000")
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Command3_Click()
b = Val(Text8.Text)
a = Val(Text7.Text)
h = Val(Text6.Text)
e2 = 0.006694384999588
c = 6378140 ^ 2 / 6356755.28815753
v = Sqr(1 + 0.006739501819473)
m = c / (v ^ 3)
jieguo = e2 * h * 206265 / m * Cos(b) * Cos(b) * Sin(2 * a) / 2
Label7.Caption = "计算出的标高差改正为:" + Format(jieguo, "0.0000")
End Sub
Private Sub Command4_Click()
b = Val(Text5.Text)
s = Val(Text9.Text)
a = Val(Text10.Text)
e2 = 0.006694384999588
c = 6378140 ^ 2 / 6356755.28815753
v = Sqr(1 + 0.006739501819473)
n = c / v
t = 206265 / n
jieguo = -e2 * s * s * Cos(b) * Cos(b) * Sin(a * 2) / (12 * 206265) * t * t
Label14.Caption = "计算出的截面差改正为:" + Format(jieguo, "0.0000")
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -