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

📄 compute.frm

📁 VB打造的 科学计算器
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form Form1 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "科学计算器"
   ClientHeight    =   4185
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6930
   FillColor       =   &H00FFFFFF&
   ForeColor       =   &H80000007&
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4185
   ScaleWidth      =   6930
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command5 
      Caption         =   "CE"
      Height          =   375
      Left            =   5910
      TabIndex        =   40
      Top             =   2280
      Width           =   675
   End
   Begin VB.CommandButton Command4 
      Caption         =   "<-"
      Height          =   375
      Left            =   5910
      TabIndex        =   39
      Top             =   1860
      Width           =   675
   End
   Begin VB.Frame Frame3 
      BorderStyle     =   0  'None
      Height          =   1785
      Left            =   4680
      TabIndex        =   31
      Top             =   1860
      Width           =   1215
      Begin VB.CommandButton Command3 
         Caption         =   ")"
         Height          =   375
         Index           =   6
         Left            =   570
         TabIndex        =   38
         Top             =   420
         Width           =   525
      End
      Begin VB.CommandButton Command3 
         Caption         =   "("
         Height          =   375
         Index           =   5
         Left            =   570
         TabIndex        =   37
         Top             =   0
         Width           =   525
      End
      Begin VB.CommandButton Command3 
         Caption         =   "^"
         Height          =   375
         Index           =   4
         Left            =   570
         TabIndex        =   36
         Top             =   840
         Width           =   525
      End
      Begin VB.CommandButton Command3 
         Caption         =   "/"
         Height          =   375
         Index           =   3
         Left            =   0
         TabIndex        =   35
         Top             =   1260
         Width           =   525
      End
      Begin VB.CommandButton Command3 
         Caption         =   "*"
         Height          =   375
         Index           =   2
         Left            =   0
         TabIndex        =   34
         Top             =   840
         Width           =   525
      End
      Begin VB.CommandButton Command3 
         Caption         =   "-"
         Height          =   375
         Index           =   1
         Left            =   0
         TabIndex        =   33
         Top             =   420
         Width           =   525
      End
      Begin VB.CommandButton Command3 
         Caption         =   "+"
         Height          =   375
         Index           =   0
         Left            =   0
         TabIndex        =   32
         Top             =   0
         Width           =   525
      End
   End
   Begin VB.Frame Frame2 
      BorderStyle     =   0  'None
      Height          =   2175
      Left            =   390
      TabIndex        =   15
      Top             =   1860
      Width           =   2385
      Begin VB.CommandButton Command2 
         Caption         =   "abs"
         Height          =   375
         Index           =   14
         Left            =   1500
         TabIndex        =   30
         Top             =   1680
         Width           =   705
      End
      Begin VB.CommandButton Command2 
         Caption         =   "ch"
         Height          =   375
         Index           =   13
         Left            =   750
         TabIndex        =   29
         Top             =   1680
         Width           =   705
      End
      Begin VB.CommandButton Command2 
         Caption         =   "sh"
         Height          =   375
         Index           =   12
         Left            =   0
         TabIndex        =   28
         Top             =   1680
         Width           =   705
      End
      Begin VB.CommandButton Command2 
         Caption         =   "ln"
         Height          =   375
         Index           =   11
         Left            =   1500
         TabIndex        =   27
         Top             =   1260
         Width           =   705
      End
      Begin VB.CommandButton Command2 
         Caption         =   "log"
         Height          =   375
         Index           =   10
         Left            =   750
         TabIndex        =   26
         Top             =   1260
         Width           =   705
      End
      Begin VB.CommandButton Command2 
         Caption         =   "arcctg"
         Height          =   375
         Index           =   9
         Left            =   0
         TabIndex        =   25
         Top             =   1260
         Width           =   705
      End
      Begin VB.CommandButton Command2 
         Caption         =   "arctg"
         Height          =   375
         Index           =   8
         Left            =   1500
         TabIndex        =   24
         Top             =   840
         Width           =   705
      End
      Begin VB.CommandButton Command2 
         Caption         =   "arccos"
         Height          =   375
         Index           =   7
         Left            =   750
         TabIndex        =   23
         Top             =   840
         Width           =   705
      End
      Begin VB.CommandButton Command2 
         Caption         =   "arcsin"
         Height          =   375
         Index           =   6
         Left            =   0
         TabIndex        =   22
         Top             =   840
         Width           =   705
      End
      Begin VB.CommandButton Command2 
         Caption         =   "csc"
         Height          =   375
         Index           =   5
         Left            =   750
         TabIndex        =   21
         Top             =   420
         Width           =   705
      End
      Begin VB.CommandButton Command2 
         Caption         =   "sec"
         Height          =   375
         Index           =   4
         Left            =   0
         TabIndex        =   20
         Top             =   420
         Width           =   705
      End
      Begin VB.CommandButton Command2 
         Caption         =   "ctg"
         Height          =   375
         Index           =   3
         Left            =   1500
         TabIndex        =   19
         Top             =   420
         Width           =   705
      End
      Begin VB.CommandButton Command2 
         Caption         =   "tg"
         Height          =   375
         Index           =   2
         Left            =   1500
         TabIndex        =   18
         Top             =   0
         Width           =   705
      End
      Begin VB.CommandButton Command2 
         Caption         =   "cos"
         Height          =   375
         Index           =   1
         Left            =   750
         TabIndex        =   17
         Top             =   0
         Width           =   705
      End
      Begin VB.CommandButton Command2 
         Caption         =   "sin"
         Height          =   375
         Index           =   0
         Left            =   0
         TabIndex        =   16
         Top             =   0
         Width           =   705
      End
   End
   Begin VB.Frame Frame1 
      BorderStyle     =   0  'None
      Height          =   1725
      Left            =   2820
      TabIndex        =   2
      Top             =   1860
      Width           =   1755
      Begin VB.CommandButton Command1 
         Caption         =   "."
         Height          =   375
         Index           =   11
         Left            =   1140
         TabIndex        =   14
         Top             =   1260
         Width           =   525
      End
      Begin VB.CommandButton Command1 
         Caption         =   "-"
         Height          =   375
         Index           =   10
         Left            =   0
         TabIndex        =   13
         Top             =   1260
         Width           =   525
      End
      Begin VB.CommandButton Command1 
         Caption         =   "9"
         Height          =   375
         Index           =   9
         Left            =   1140
         TabIndex        =   12
         Top             =   0
         Width           =   525
      End
      Begin VB.CommandButton Command1 
         Caption         =   "8"
         Height          =   375
         Index           =   8
         Left            =   570
         TabIndex        =   11
         Top             =   0
         Width           =   525
      End
      Begin VB.CommandButton Command1 
         Caption         =   "7"
         Height          =   375
         Index           =   7
         Left            =   0
         TabIndex        =   10
         Top             =   0
         Width           =   525
      End
      Begin VB.CommandButton Command1 
         Caption         =   "6"
         Height          =   375
         Index           =   6
         Left            =   1140
         TabIndex        =   9
         Top             =   420
         Width           =   525
      End
      Begin VB.CommandButton Command1 
         Caption         =   "5"
         Height          =   375
         Index           =   5
         Left            =   570
         TabIndex        =   8
         Top             =   420
         Width           =   525
      End
      Begin VB.CommandButton Command1 
         Caption         =   "4"
         Height          =   375
         Index           =   4
         Left            =   0
         TabIndex        =   7
         Top             =   420
         Width           =   525
      End
      Begin VB.CommandButton Command1 
         Caption         =   "3"
         Height          =   375
         Index           =   3
         Left            =   1140
         TabIndex        =   6
         Top             =   840
         Width           =   525
      End
      Begin VB.CommandButton Command1 
         Caption         =   "2"
         Height          =   375
         Index           =   2
         Left            =   570
         TabIndex        =   5
         Top             =   840
         Width           =   525
      End
      Begin VB.CommandButton Command1 
         Caption         =   "1"
         Height          =   375
         Index           =   1
         Left            =   0
         TabIndex        =   4
         Top             =   840
         Width           =   525
      End
      Begin VB.CommandButton Command1 
         Caption         =   "0"
         Height          =   375
         Index           =   0
         Left            =   570
         TabIndex        =   3
         Top             =   1260
         Width           =   525
      End
   End
   Begin VB.CommandButton Command0 
      Appearance      =   0  'Flat
      Caption         =   "Enter"
      Default         =   -1  'True
      Height          =   495
      Left            =   5910
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   2700
      UseMaskColor    =   -1  'True
      Width           =   675
   End
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1425
      Left            =   240
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   0
      Top             =   240
      Width           =   6495
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Const PI = 3.14159265358979
Const e = 2.71828182845905
Dim Express As String
Dim expr As String

Private Function Operate(Woperate As String, a As Double, b As Double) As Double
On Error GoTo myerr
Select Case Woperate
Case "+"
Operate = a + b
Case "-"
Operate = a - b
Case "*"
Operate = a * b
Case "/"
Operate = a / b

⌨️ 快捷键说明

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