📄 坐标反算.ebf
字号:
VERSION 5.00
Begin VB.Form Form6
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "坐标反算"
ClientHeight = 4035
ClientLeft = 60
ClientTop = 345
ClientWidth = 3480
ForeColor = &H80000008&
ScaleHeight = 4035
ScaleWidth = 3480
SIPBehavior = 1 'vbSIPAutomatic
SIPVisible = -1 'True
Begin VBCE.Frame Frame2
Height = 1335
Left = 120
TabIndex = 1
Top = 2040
Width = 3255
_cx = 5741
_cy = 2355
BackColor = -2147483643
BorderStyle = 1
Caption = "大地坐标"
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
ClipControls = -1 'True
Begin VBCE.Label Label4
Height = 375
Left = 360
TabIndex = 10
Top = 720
Width = 1095
_cx = 1931
_cy = 661
AutoSize = 0 'False
BackColor = -2147483643
BackStyle = 1
BorderStyle = 0
Caption = "L(d.mmssss)="
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Alignment = 0
UseMnemonic = -1 'True
WordWrap = 0 'False
End
Begin VBCE.Label Label3
Height = 375
Left = 360
TabIndex = 9
Top = 240
Width = 1095
_cx = 1931
_cy = 661
AutoSize = 0 'False
BackColor = -2147483643
BackStyle = 1
BorderStyle = 0
Caption = "B(d.mmssss)="
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Alignment = 0
UseMnemonic = -1 'True
WordWrap = 0 'False
End
Begin VBCE.TextBox Text5
Height = 375
Left = 1560
TabIndex = 6
Top = 720
Width = 1575
_cx = 2778
_cy = 661
BackColor = -2147483643
BorderStyle = 1
Enabled = 0 'False
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Text = ""
Alignment = 1
HideSelection = -1 'True
Locked = 0 'False
MaxLength = 0
MultiLine = 0 'False
PasswordChar = ""
ScrollBars = 0
End
Begin VBCE.TextBox Text4
Height = 375
Left = 1560
TabIndex = 5
Top = 240
Width = 1575
_cx = 2778
_cy = 661
BackColor = -2147483643
BorderStyle = 1
Enabled = 0 'False
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Text = ""
Alignment = 1
HideSelection = -1 'True
Locked = 0 'False
MaxLength = 0
MultiLine = 0 'False
PasswordChar = ""
ScrollBars = 0
End
End
Begin VBCE.Frame Frame1
Height = 1815
Left = 120
TabIndex = 0
Top = 120
Width = 3255
_cx = 5741
_cy = 3201
BackColor = -2147483643
BorderStyle = 1
Caption = "北京坐标"
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
ClipControls = -1 'True
Begin VBCE.CommandButton Command1
Height = 375
Left = 120
TabIndex = 12
Top = 1200
Width = 855
_cx = 1508
_cy = 661
BackColor = 12632256
Caption = "计 算"
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Style = 0
End
Begin VBCE.Label Label5
Height = 495
Left = 480
TabIndex = 11
Top = 240
Width = 1095
_cx = 1931
_cy = 873
AutoSize = 0 'False
BackColor = -2147483643
BackStyle = 1
BorderStyle = 0
Caption = "中央子午线(d.mmssss)"
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Alignment = 0
UseMnemonic = -1 'True
WordWrap = 0 'False
End
Begin VBCE.Label Label2
Height = 375
Left = 1080
TabIndex = 8
Top = 1200
Width = 495
_cx = 873
_cy = 661
AutoSize = 0 'False
BackColor = -2147483643
BackStyle = 1
BorderStyle = 0
Caption = "Y(m)="
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Alignment = 0
UseMnemonic = -1 'True
WordWrap = 0 'False
End
Begin VBCE.Label Label1
Height = 375
Left = 1080
TabIndex = 7
Top = 720
Width = 495
_cx = 873
_cy = 661
AutoSize = 0 'False
BackColor = -2147483643
BackStyle = 1
BorderStyle = 0
Caption = "X(m)="
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Alignment = 0
UseMnemonic = -1 'True
WordWrap = 0 'False
End
Begin VBCE.TextBox Text3
Height = 375
Left = 1680
TabIndex = 4
Top = 1200
Width = 1455
_cx = 2566
_cy = 661
BackColor = -2147483643
BorderStyle = 1
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Text = ""
Alignment = 0
HideSelection = -1 'True
Locked = 0 'False
MaxLength = 0
MultiLine = 0 'False
PasswordChar = ""
ScrollBars = 0
End
Begin VBCE.TextBox Text2
Height = 375
Left = 1680
TabIndex = 3
Top = 720
Width = 1455
_cx = 2566
_cy = 661
BackColor = -2147483643
BorderStyle = 1
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Text = ""
Alignment = 0
HideSelection = -1 'True
Locked = 0 'False
MaxLength = 0
MultiLine = 0 'False
PasswordChar = ""
ScrollBars = 0
End
Begin VBCE.TextBox Text1
Height = 375
Left = 1680
TabIndex = 2
Top = 240
Width = 1455
_cx = 2566
_cy = 661
BackColor = -2147483643
BorderStyle = 1
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Text = ""
Alignment = 0
HideSelection = -1 'True
Locked = 0 'False
MaxLength = 0
MultiLine = 0 'False
PasswordChar = ""
ScrollBars = 0
End
End
Begin VBCE.CommandButton Command2
Height = 375
Left = 1200
TabIndex = 13
Top = 3480
Width = 855
_cx = 1508
_cy = 661
BackColor = 12632256
Caption = "返 回"
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Style = 0
End
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
If IsNumeric(Text1) = False Then Text1.Text = "": Text1.SetFocus: Exit Sub
If IsNumeric(Text2) = False Then Text2.Text = "": Text2.SetFocus: Exit Sub
If IsNumeric(Text3) = False Then Text3.Text = "": Text3.SetFocus: Exit Sub
If CDbl(Text1.Text) >= 180 Then MsgBox "中央子午线不能大于180度", vbExclamation, "坐标反算": Text1.Text = "": Text1.SetFocus: Exit Sub
x1 = CDbl(Text2.Text)
y1 = CDbl(Text3.Text)
lo = CDbl(Text1.Text)
zuobiaotojingwei
Text4.Text = bstr
Text5.Text = lstr
End Sub
Private Sub Command2_Click()
Form1.Show
End Sub
Private Sub Form_Load()
End Sub
Private Sub Form_OKClick()
Form1.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -