⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 这里包含了测量计算过程中所需要的各种小程序。
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   5625
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7485
   LinkTopic       =   "Form1"
   ScaleHeight     =   5625
   ScaleWidth      =   7485
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   495
      Left            =   5520
      TabIndex        =   15
      Top             =   5040
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "计算"
      Height          =   495
      Left            =   720
      TabIndex        =   14
      Top             =   5040
      Width           =   1335
   End
   Begin VB.Frame Frame4 
      Caption         =   "输出结果"
      Height          =   1695
      Left            =   240
      TabIndex        =   12
      Top             =   3000
      Width           =   6855
      Begin VB.TextBox Text13 
         Height          =   375
         Left            =   1200
         TabIndex        =   29
         Text            =   "Text13"
         Top             =   1080
         Width           =   1575
      End
      Begin VB.TextBox Text12 
         Height          =   375
         Left            =   1200
         TabIndex        =   28
         Text            =   "Text12"
         Top             =   240
         Width           =   1575
      End
      Begin VB.Frame Frame5 
         Caption         =   "方向归心改正"
         Height          =   855
         Left            =   3840
         TabIndex        =   13
         Top             =   480
         Width           =   2655
         Begin VB.TextBox Text14 
            Height          =   375
            Left            =   720
            TabIndex        =   30
            Text            =   "Text14"
            Top             =   240
            Width           =   1695
         End
      End
      Begin VB.Label Label15 
         Caption         =   "rk="
         Height          =   255
         Left            =   960
         TabIndex        =   35
         Top             =   1200
         Width           =   255
      End
      Begin VB.Label Label14 
         Caption         =   "Ci="
         Height          =   255
         Left            =   960
         TabIndex        =   34
         Top             =   360
         Width           =   255
      End
      Begin VB.Label Label8 
         Caption         =   "照准点归心(秒)"
         Height          =   375
         Left            =   120
         TabIndex        =   17
         Top             =   1080
         Width           =   855
      End
      Begin VB.Label Label7 
         Caption         =   "测站归心(秒)"
         Height          =   375
         Left            =   120
         TabIndex        =   16
         Top             =   240
         Width           =   735
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "Frame1"
      Height          =   2775
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   6975
      Begin VB.TextBox Text11 
         Height          =   375
         Left            =   5400
         TabIndex        =   27
         Text            =   "Text11"
         Top             =   2160
         Width           =   1335
      End
      Begin VB.Frame Frame6 
         Caption         =   "请输入方向观测值"
         Height          =   1335
         Left            =   3720
         TabIndex        =   18
         Top             =   360
         Width           =   3135
         Begin VB.TextBox Text10 
            Height          =   270
            Left            =   2400
            TabIndex        =   26
            Text            =   "Text10"
            Top             =   960
            Width           =   615
         End
         Begin VB.TextBox Text9 
            Height          =   270
            Left            =   1560
            TabIndex        =   25
            Text            =   "Text9"
            Top             =   960
            Width           =   615
         End
         Begin VB.TextBox Text8 
            Height          =   270
            Left            =   720
            TabIndex        =   24
            Text            =   "Text8"
            Top             =   960
            Width           =   615
         End
         Begin VB.TextBox Text7 
            Height          =   270
            Left            =   2400
            TabIndex        =   23
            Text            =   "Text7"
            Top             =   480
            Width           =   615
         End
         Begin VB.TextBox Text6 
            Height          =   270
            Left            =   1560
            TabIndex        =   22
            Text            =   "Text6"
            Top             =   480
            Width           =   615
         End
         Begin VB.TextBox Text5 
            Height          =   270
            Left            =   720
            TabIndex        =   21
            Text            =   "Text5"
            Top             =   480
            Width           =   615
         End
         Begin VB.Label Label13 
            Caption         =   "秒"
            Height          =   255
            Left            =   2520
            TabIndex        =   33
            Top             =   240
            Width           =   375
         End
         Begin VB.Label Label12 
            Caption         =   "分"
            Height          =   375
            Left            =   1680
            TabIndex        =   32
            Top             =   240
            Width           =   375
         End
         Begin VB.Label Label11 
            Caption         =   "度"
            Height          =   375
            Left            =   840
            TabIndex        =   31
            Top             =   240
            Width           =   375
         End
         Begin VB.Label Label9 
            Caption         =   "M1="
            Height          =   255
            Left            =   120
            TabIndex        =   20
            Top             =   480
            Width           =   615
         End
         Begin VB.Label Label10 
            Caption         =   "M2="
            Height          =   375
            Left            =   120
            TabIndex        =   19
            Top             =   960
            Width           =   615
         End
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   1680
         TabIndex        =   3
         Text            =   "Text1"
         Top             =   360
         Width           =   1455
      End
      Begin VB.Frame Frame3 
         Caption         =   "请输入方向站的归心元素"
         Height          =   1335
         Left            =   240
         TabIndex        =   2
         Top             =   1320
         Width           =   3135
         Begin VB.TextBox Text4 
            Height          =   375
            Left            =   1800
            TabIndex        =   10
            Text            =   "Text4"
            Top             =   840
            Width           =   1095
         End
         Begin VB.TextBox Text3 
            Height          =   375
            Left            =   1800
            TabIndex        =   9
            Text            =   "Text3"
            Top             =   360
            Width           =   1095
         End
         Begin VB.Label Label4 
            Caption         =   "ot="
            Height          =   375
            Left            =   1440
            TabIndex        =   7
            Top             =   960
            Width           =   495
         End
         Begin VB.Label Label3 
            Caption         =   "et="
            Height          =   255
            Left            =   1440
            TabIndex        =   6
            Top             =   480
            Width           =   375
         End
      End
      Begin VB.Frame Frame2 
         Caption         =   "输入测站点的归心元素"
         Height          =   1215
         Left            =   240
         TabIndex        =   1
         Top             =   120
         Width           =   3135
         Begin VB.TextBox Text2 
            Height          =   375
            Left            =   1440
            TabIndex        =   8
            Text            =   "Text2"
            Top             =   720
            Width           =   1455
         End
         Begin VB.Label Label1 
            Caption         =   "ey="
            Height          =   255
            Left            =   1080
            TabIndex        =   5
            Top             =   360
            Width           =   615
         End
         Begin VB.Label Label2 
            Caption         =   "oy="
            Height          =   375
            Left            =   1080
            TabIndex        =   4
            Top             =   840
            Width           =   495
         End
      End
      Begin VB.Label Label5 
         Caption         =   "近似边长(KM)s="
         Height          =   375
         Left            =   3840
         TabIndex        =   11
         Top             =   2280
         Width           =   1575
      End
   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()
Dim ey, et, m1, m2, oy, ot, s As Double
Dim d1, d2, f1, f2, mi1, mi2, c1, r2, z, d As Double

ey = Val(Text1.Text)
et = Val(Text2.Text)
oy = Val(Text3.Text)
ot = Val(Text4.Text)
d1 = Val(Text5.Text)
d2 = Val(Text8.Text)
f1 = Val(Text6.Text)
f2 = Val(Text9.Text)
mi1 = Val(Text7.Text)
mi2 = Val(Text10.Text)
s = Val(Text11.Text)
m1 = d1 + f1 / 60 + mi1 / 3600
m2 = d2 + f2 / 60 + mi2 / 3600
c1 = ey * Sin((m1 + oy / 3600) * 3.14159265358979 / 180) * 206264.806247096 / s
r2 = et * Sin((m2 + ot / 3600) * 3.14159265358979 / 180) * 206264.806247096 / s
z = c1 + r2
Text12.Text = c1
Text13.Text = r2
Text14.Text = z


End Sub

Private Sub Command2_Click()
End
End Sub

Private Sub Form_Load()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -