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

📄 jsq.frm

📁 一个计算器,用VB打开看(应该可以),我在网上找的
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form Form1 
   AutoRedraw      =   -1  'True
   BackColor       =   &H00C0C0FF&
   Caption         =   "计算器V1.18 最后更新于2000年10月5日"
   ClientHeight    =   2070
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6450
   FillColor       =   &H80000001&
   FillStyle       =   0  'Solid
   BeginProperty Font 
      Name            =   "隶书"
      Size            =   15.75
      Charset         =   134
      Weight          =   700
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   ForeColor       =   &H00C0C0FF&
   Icon            =   "JSQ.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   2070
   ScaleWidth      =   6450
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command26 
      Caption         =   "%"
      Height          =   375
      Left            =   3960
      TabIndex        =   26
      Top             =   1080
      Width           =   255
   End
   Begin VB.CommandButton Command25 
      Caption         =   "帮助"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   5760
      TabIndex        =   25
      Top             =   1560
      Width           =   615
   End
   Begin VB.CommandButton Command24 
      Caption         =   "清除"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   5040
      TabIndex        =   24
      Top             =   1560
      Width           =   615
   End
   Begin VB.CommandButton Command23 
      BackColor       =   &H00FF8080&
      Caption         =   "计算"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   4200
      TabIndex        =   23
      Top             =   1560
      Width           =   735
   End
   Begin VB.CommandButton Command22 
      Caption         =   "时间"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   5640
      TabIndex        =   22
      Top             =   600
      Width           =   735
   End
   Begin VB.CommandButton Command21 
      Caption         =   "日历"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   5640
      TabIndex        =   21
      Top             =   0
      Width           =   735
   End
   Begin VB.CommandButton Command20 
      Caption         =   "阶乘"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3360
      TabIndex        =   20
      Top             =   1560
      Width           =   735
   End
   Begin VB.CommandButton Command19 
      Caption         =   "开方"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2520
      TabIndex        =   19
      Top             =   1560
      Width           =   735
   End
   Begin VB.CommandButton Command18 
      Caption         =   "乘方"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1680
      TabIndex        =   18
      Top             =   1560
      Width           =   735
   End
   Begin VB.CommandButton Command17 
      Caption         =   "求余"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   840
      TabIndex        =   17
      Top             =   1560
      Width           =   735
   End
   Begin VB.CommandButton Command16 
      Caption         =   "整除"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   0
      TabIndex        =   16
      Top             =   1560
      Width           =   735
   End
   Begin VB.CommandButton Command15 
      Caption         =   "除以"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   5760
      TabIndex        =   15
      Top             =   1080
      Width           =   615
   End
   Begin VB.CommandButton Command14 
      Caption         =   "乘"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   5280
      TabIndex        =   14
      Top             =   1080
      Width           =   375
   End
   Begin VB.CommandButton Command13 
      Caption         =   "减"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   4800
      TabIndex        =   13
      Top             =   1080
      Width           =   375
   End
   Begin VB.CommandButton Command12 
      Caption         =   "加"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   4320
      TabIndex        =   12
      Top             =   1080
      Width           =   375
   End
   Begin VB.CommandButton Command11 
      Caption         =   "."
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3600
      TabIndex        =   11
      Top             =   1080
      Width           =   255
   End
   Begin VB.CommandButton Command10 
      Caption         =   "0"
      Height          =   375
      Left            =   3240
      TabIndex        =   10
      Top             =   1080
      Width           =   255
   End
   Begin VB.CommandButton Command9 
      Caption         =   "9"
      Height          =   375
      Left            =   2880
      TabIndex        =   9
      Top             =   1080
      Width           =   255
   End
   Begin VB.CommandButton Command8 
      Caption         =   "8"
      Height          =   375
      Left            =   2520
      TabIndex        =   8
      Top             =   1080
      Width           =   255
   End
   Begin VB.CommandButton Command7 
      Caption         =   "7"
      Height          =   375
      Left            =   2160
      TabIndex        =   7
      Top             =   1080
      Width           =   255
   End
   Begin VB.CommandButton Command6 
      Caption         =   "6"
      Height          =   375
      Left            =   1800
      TabIndex        =   6
      Top             =   1080
      Width           =   255
   End
   Begin VB.CommandButton Command5 
      Caption         =   "5"
      Height          =   375
      Left            =   1440
      TabIndex        =   5
      Top             =   1080
      Width           =   255
   End
   Begin VB.CommandButton Command4 
      Caption         =   "4"
      Height          =   405
      Left            =   1080
      TabIndex        =   4
      Top             =   1080
      Width           =   255
   End
   Begin VB.CommandButton Command3 
      Caption         =   "3"
      Height          =   375
      Left            =   720
      TabIndex        =   3
      Top             =   1080
      Width           =   255
   End
   Begin VB.CommandButton Command2 
      Caption         =   "2"
      Height          =   375
      Left            =   360
      TabIndex        =   2
      Top             =   1080
      Width           =   255
   End
   Begin VB.CommandButton Command1 
      Caption         =   "1"
      Height          =   405
      Left            =   0
      TabIndex        =   1
      Top             =   1080
      Width           =   255
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H00008000&
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   26.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   975
      Left            =   120
      TabIndex        =   0
      Top             =   0
      Width           =   5535
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public fir As Double
Public pmark As String
Public sec As Double


Private Sub Command1_Click()
    Text1.FontSize = 26
    If InStr(Text1.Text, "年") <> 0 Or InStr(Text1.Text, "点") Then
      Text1.Text = ""
   End If

    If Text1.Text = "" Then
       Text1.Text = "1"
    Else
       Text1.Text = Text1.Text + "1"
    End If
End Sub

Private Sub Command10_Click()
    Text1.FontSize = 26
    If InStr(Text1.Text, "年") <> 0 Or InStr(Text1.Text, "点") Then
      Text1.Text = ""
   End If

    If Text1.Text = "" Then
       Text1.Text = "0"
    Else
       Text1.Text = Text1.Text + "0"
    End If

End Sub

Private Sub Command11_Click()
   If InStr(Text1.Text, "年") <> 0 Or InStr(Text1.Text, "点") Then
      Text1.Text = ""
   End If

   If InStr(Text1.Text, ".") = 0 Then
      If Text1.Text = "" Then
         Text1.Text = "."
      Else
         Text1.Text = Text1.Text + "."
      End If
   End If
End Sub

⌨️ 快捷键说明

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