📄 form3.frm
字号:
VERSION 5.00
Object = "{74848F95-A02A-4286-AF0C-A3C755E4A5B3}#1.0#0"; "actskn43.ocx"
Begin VB.Form Form3
Caption = "直角坐标法放样数据计算"
ClientHeight = 5865
ClientLeft = 2775
ClientTop = 2505
ClientWidth = 8595
LinkTopic = "Form3"
MaxButton = 0 'False
ScaleHeight = 5865
ScaleWidth = 8595
Begin VB.Frame Frame1
Caption = "输入数据"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2175
Left = 360
TabIndex = 10
Top = 840
Width = 7335
Begin VB.TextBox Text1
Height = 375
Left = 2400
TabIndex = 25
Top = 360
Width = 1455
End
Begin VB.TextBox Text2
Height = 375
Left = 4920
TabIndex = 24
Top = 360
Width = 1455
End
Begin VB.TextBox Text3
Height = 375
Left = 2400
TabIndex = 23
Top = 960
Width = 1455
End
Begin VB.TextBox Text4
Height = 375
Left = 4920
TabIndex = 22
Top = 960
Width = 1455
End
Begin VB.TextBox Text5
Height = 375
Left = 2400
TabIndex = 21
Top = 1560
Width = 1455
End
Begin VB.TextBox Text6
Height = 375
Left = 4920
TabIndex = 20
Top = 1560
Width = 1455
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel10
Height = 255
Left = 4320
OleObjectBlob = "Form3.frx":0000
TabIndex = 11
Top = 1680
Width = 375
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel9
Height = 255
Left = 1920
OleObjectBlob = "Form3.frx":0066
TabIndex = 12
Top = 1680
Width = 375
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel8
Height = 255
Left = 600
OleObjectBlob = "Form3.frx":00CC
TabIndex = 13
Top = 1680
Width = 1335
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel7
Height = 255
Left = 4320
OleObjectBlob = "Form3.frx":0138
TabIndex = 14
Top = 1080
Width = 495
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel6
Height = 255
Left = 1920
OleObjectBlob = "Form3.frx":019E
TabIndex = 15
Top = 1080
Width = 375
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel5
Height = 255
Left = 600
OleObjectBlob = "Form3.frx":0204
TabIndex = 16
Top = 1080
Width = 1215
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel4
Height = 255
Left = 4320
OleObjectBlob = "Form3.frx":0270
TabIndex = 17
Top = 480
Width = 495
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel3
Height = 255
Left = 1920
OleObjectBlob = "Form3.frx":02D6
TabIndex = 18
Top = 480
Width = 375
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel2
Height = 375
Left = 600
OleObjectBlob = "Form3.frx":033C
TabIndex = 19
Top = 480
Width = 1335
End
Begin VB.Label Label3
Caption = "设站点坐标:"
Height = 375
Index = 0
Left = 600
TabIndex = 34
Top = 480
Width = 1095
End
Begin VB.Label Label3
Caption = "放样点坐标:"
Height = 375
Index = 1
Left = 600
TabIndex = 33
Top = 1680
Width = 1095
End
Begin VB.Label Label3
Caption = "后视点坐标:"
Height = 375
Index = 2
Left = 600
TabIndex = 32
Top = 1080
Width = 1095
End
Begin VB.Label Label4
Caption = "x(m)"
Height = 255
Index = 0
Left = 1920
TabIndex = 31
Top = 480
Width = 735
End
Begin VB.Label Label4
Caption = "x(m)"
Height = 255
Index = 1
Left = 1920
TabIndex = 30
Top = 1680
Width = 735
End
Begin VB.Label Label4
Caption = "x(m)"
Height = 255
Index = 2
Left = 1920
TabIndex = 29
Top = 1080
Width = 735
End
Begin VB.Label Label4
Caption = "y(m)"
Height = 255
Index = 3
Left = 4320
TabIndex = 28
Top = 1680
Width = 735
End
Begin VB.Label Label4
Caption = "y(m)"
Height = 255
Index = 4
Left = 4320
TabIndex = 27
Top = 1080
Width = 735
End
Begin VB.Label Label4
Caption = "y(m)"
Height = 255
Index = 5
Left = 4320
TabIndex = 26
Top = 480
Width = 735
End
End
Begin VB.Frame Frame2
Caption = "输出结果"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1335
Left = 360
TabIndex = 3
Top = 3240
Width = 7335
Begin VB.TextBox Text7
Height = 375
Left = 1800
TabIndex = 7
Top = 360
Width = 1455
End
Begin VB.TextBox Text8
Height = 375
Left = 4920
TabIndex = 6
Top = 360
Width = 1455
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel12
Height = 255
Left = 3720
OleObjectBlob = "Form3.frx":03A8
TabIndex = 4
Top = 480
Width = 1095
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel11
Height = 255
Left = 720
OleObjectBlob = "Form3.frx":0414
TabIndex = 5
Top = 480
Width = 975
End
Begin VB.Label Label5
Caption = "角度:"
Height = 375
Index = 0
Left = 720
TabIndex = 9
Top = 480
Width = 975
End
Begin VB.Label Label5
Caption = "距离(m):"
Height = 375
Index = 2
Left = 3720
TabIndex = 8
Top = 480
Width = 1215
End
End
Begin VB.CommandButton Command2
Caption = "继续"
Height = 495
Left = 4440
TabIndex = 2
Top = 4920
Width = 1815
End
Begin VB.CommandButton Command1
Caption = "计算"
Height = 495
Left = 1320
TabIndex = 1
Top = 4920
Width = 1935
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel1
Height = 735
Left = 1680
OleObjectBlob = "Form3.frx":0480
TabIndex = 0
Top = 240
Width = 4455
End
Begin ACTIVESKINLibCtl.Skin Skin1
Left = 360
OleObjectBlob = "Form3.frx":04F2
Top = 120
End
Begin VB.Label Label5
Caption = "Label5"
Height = 375
Index = 1
Left = 3960
TabIndex = 35
Top = 3840
Width = 975
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim x1!, y1!, x2!, y2!, x3!, y3!, dietx!, diety!
x1 = Val(Text1.Text)
y1 = Val(Text2.Text)
x2 = Val(Text3.Text)
y2 = Val(Text4.Text)
x3 = Val(Text5.Text)
y3 = Val(Text6.Text)
dietx = x3 - x1
diety = y3 - y1
Text7.Text = Str$(dietx)
Text8.Text = Str$(diety)
If x1 <> x2 Then
If y1 <> y2 Then
MsgBox "注意:不适合用直角坐标法计算", 48, "错误提示"
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
End If
End If
If x1 = x2 Then
If y1 = y2 Then
MsgBox "注意:两控制点重合重合", 48, "错误提示"
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
End If
End If
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
End Sub
Private Sub Form_Load()
'Form3.Skin1.LoadSkin ("chizh.skn")
'Skin1.ApplySkin (0)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -