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

📄 form6.frm

📁 上传的包含两个文件
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command5 
      Caption         =   "="
      Height          =   375
      Left            =   1320
      TabIndex        =   14
      Top             =   2760
      Width           =   495
   End
   Begin VB.CommandButton Command4 
      Caption         =   "end"
      Height          =   375
      Left            =   3120
      TabIndex        =   13
      Top             =   2760
      Width           =   495
   End
   Begin VB.CommandButton Command3 
      Caption         =   "cl"
      Height          =   375
      Left            =   2280
      TabIndex        =   12
      Top             =   2760
      Width           =   495
   End
   Begin VB.CommandButton Command2 
      Caption         =   "+"
      Height          =   375
      Left            =   480
      TabIndex        =   11
      Top             =   2760
      Width           =   375
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   360
      TabIndex        =   10
      Text            =   "0"
      Top             =   480
      Width           =   2655
   End
   Begin VB.CommandButton Command1 
      Caption         =   "9"
      Height          =   375
      Index           =   9
      Left            =   3120
      TabIndex        =   9
      Top             =   2040
      Width           =   375
   End
   Begin VB.CommandButton Command1 
      Caption         =   "8"
      Height          =   375
      Index           =   8
      Left            =   2400
      TabIndex        =   8
      Top             =   2040
      Width           =   375
   End
   Begin VB.CommandButton Command1 
      Caption         =   "7"
      Height          =   375
      Index           =   7
      Left            =   1680
      TabIndex        =   7
      Top             =   2040
      Width           =   375
   End
   Begin VB.CommandButton Command1 
      Caption         =   "6"
      Height          =   375
      Index           =   6
      Left            =   960
      TabIndex        =   6
      Top             =   2040
      Width           =   375
   End
   Begin VB.CommandButton Command1 
      Caption         =   "5"
      Height          =   375
      Index           =   5
      Left            =   240
      TabIndex        =   5
      Top             =   2040
      Width           =   375
   End
   Begin VB.CommandButton Command1 
      Caption         =   "4"
      Height          =   375
      Index           =   4
      Left            =   3120
      TabIndex        =   4
      Top             =   1320
      Width           =   375
   End
   Begin VB.CommandButton Command1 
      Caption         =   "3"
      Height          =   375
      Index           =   3
      Left            =   2400
      TabIndex        =   3
      Top             =   1320
      Width           =   375
   End
   Begin VB.CommandButton Command1 
      Caption         =   "2"
      Height          =   375
      Index           =   2
      Left            =   1680
      TabIndex        =   2
      Top             =   1320
      Width           =   375
   End
   Begin VB.CommandButton Command1 
      Caption         =   "1"
      Height          =   375
      Index           =   1
      Left            =   960
      TabIndex        =   1
      Top             =   1320
      Width           =   375
   End
   Begin VB.CommandButton Command1 
      Caption         =   "0"
      Height          =   375
      Index           =   0
      Left            =   240
      TabIndex        =   0
      Top             =   1320
      Width           =   375
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Public num1 As Integer
Public num2 As Integer
Public flag As Boolean



Private Sub Command1_Click(Index As Integer)
If flag = True Then
Text1.Text = ""
flag = False
End If
Text1.Text = Text1.Text + CStr(Index)
End Sub

Private Sub Command2_Click()
num1 = Val(Text1.Text)
Text1.Text = ""
Text1.Text = Text1.Text + CStr(Index)
End Sub

Private Sub Command3_Click()
Text1.Text = 0
End Sub

Private Sub Command4_Click()
End
End Sub

Private Sub Command5_Click()
num2 = Val(Text1.Text)
Text1.Text = num1 + num2
flag = True
End Sub

Private Sub Form_Load()
flag = True
End Sub

⌨️ 快捷键说明

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