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

📄 四则运算器.frm

📁 上传的包含两个文件
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3090
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command5 
      Caption         =   "清除"
      Height          =   495
      Left            =   3600
      TabIndex        =   10
      Top             =   2160
      Width           =   735
   End
   Begin VB.CommandButton Command4 
      Caption         =   "/"
      Height          =   375
      Left            =   4080
      TabIndex        =   9
      Top             =   1200
      Width           =   375
   End
   Begin VB.CommandButton Command3 
      Caption         =   "*"
      Height          =   375
      Left            =   3360
      TabIndex        =   8
      Top             =   1200
      Width           =   495
   End
   Begin VB.CommandButton Command2 
      Caption         =   "_"
      Height          =   375
      Left            =   3960
      TabIndex        =   7
      Top             =   480
      Width           =   495
   End
   Begin VB.CommandButton Command1 
      Caption         =   "+"
      Height          =   375
      Left            =   3360
      TabIndex        =   6
      Top             =   480
      Width           =   375
   End
   Begin VB.TextBox Text3 
      Height          =   615
      Left            =   2040
      TabIndex        =   5
      Text            =   "Text3"
      Top             =   2040
      Width           =   1095
   End
   Begin VB.TextBox Text2 
      Height          =   615
      Left            =   2040
      TabIndex        =   4
      Text            =   "Text2"
      Top             =   1200
      Width           =   1095
   End
   Begin VB.TextBox Text1 
      Height          =   615
      Left            =   2040
      TabIndex        =   3
      Text            =   "Text1"
      Top             =   360
      Width           =   1095
   End
   Begin VB.Label Label3 
      Caption         =   "结果"
      Height          =   615
      Left            =   240
      TabIndex        =   2
      Top             =   1920
      Width           =   1335
   End
   Begin VB.Label Label2 
      Caption         =   "Label2"
      Height          =   495
      Left            =   240
      TabIndex        =   1
      Top             =   1080
      Width           =   1215
   End
   Begin VB.Label Label1 
      Caption         =   "Label1"
      Height          =   495
      Left            =   360
      TabIndex        =   0
      Top             =   240
      Width           =   1215
   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 a As Single, b As Single
a = Text1.Text
b = Text2.Text
Text3.Text = a + b
End Sub

Private Sub Command2_Click()
a = Text1.Text
b = Text2.Text
Text3.Text = a - b
End Sub

Private Sub Command3_Click()
a = Text1.Text
b = Text2.Text
Text3.Text = a * b
End Sub

Private Sub Command4_Click()
a = Text1.Text
b = Text2.Text
Text3.Text = a / b
End Sub

Private Sub Command5_Click()
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
End Sub

⌨️ 快捷键说明

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