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

📄 frmdatain.frm

📁 基于化工行业造气岗位的自动化监控系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmDataIn 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "数据输入"
   ClientHeight    =   2385
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   2055
   Icon            =   "frmDataIn.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2385
   ScaleWidth      =   2055
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame1 
      Height          =   2460
      Left            =   0
      TabIndex        =   0
      Top             =   -80
      Width           =   2055
      Begin VB.CommandButton cmdInput 
         Caption         =   "输入"
         Height          =   375
         Left            =   1320
         TabIndex        =   15
         Top             =   2040
         Width           =   615
      End
      Begin VB.CommandButton Command1 
         Caption         =   "清空"
         Height          =   375
         Left            =   720
         TabIndex        =   1
         Top             =   2040
         Width           =   615
      End
      Begin VB.CommandButton cmdNumber 
         Caption         =   "-"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   11
         Left            =   120
         TabIndex        =   16
         Top             =   2040
         Width           =   615
      End
      Begin VB.TextBox txtNumber 
         Alignment       =   1  'Right Justify
         Appearance      =   0  'Flat
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   375
         Left            =   120
         TabIndex        =   14
         Top             =   240
         Width           =   1815
      End
      Begin VB.CommandButton Command3 
         Caption         =   "C"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   1320
         TabIndex        =   2
         Top             =   1680
         Width           =   615
      End
      Begin VB.CommandButton cmdNumber 
         Caption         =   "."
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   10
         Left            =   120
         TabIndex        =   3
         Top             =   1680
         Width           =   615
      End
      Begin VB.CommandButton cmdNumber 
         Caption         =   "9"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   9
         Left            =   1320
         TabIndex        =   4
         Top             =   1320
         Width           =   615
      End
      Begin VB.CommandButton cmdNumber 
         Caption         =   "8"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   8
         Left            =   720
         TabIndex        =   5
         Top             =   1320
         Width           =   615
      End
      Begin VB.CommandButton cmdNumber 
         Caption         =   "7"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   7
         Left            =   120
         TabIndex        =   6
         Top             =   1320
         Width           =   615
      End
      Begin VB.CommandButton cmdNumber 
         Caption         =   "6"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   6
         Left            =   1320
         TabIndex        =   7
         Top             =   960
         Width           =   615
      End
      Begin VB.CommandButton cmdNumber 
         Caption         =   "5"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   5
         Left            =   720
         TabIndex        =   8
         Top             =   960
         Width           =   615
      End
      Begin VB.CommandButton cmdNumber 
         Caption         =   "4"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   4
         Left            =   120
         TabIndex        =   9
         Top             =   960
         Width           =   615
      End
      Begin VB.CommandButton cmdNumber 
         Caption         =   "3"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   3
         Left            =   1320
         TabIndex        =   10
         Top             =   600
         Width           =   615
      End
      Begin VB.CommandButton cmdNumber 
         Caption         =   "2"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   2
         Left            =   720
         TabIndex        =   11
         Top             =   600
         Width           =   615
      End
      Begin VB.CommandButton cmdNumber 
         Caption         =   "1"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   1
         Left            =   120
         TabIndex        =   12
         Top             =   600
         Width           =   615
      End
      Begin VB.CommandButton cmdNumber 
         Caption         =   "0"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   0
         Left            =   720
         TabIndex        =   13
         Top             =   1680
         Width           =   615
      End
   End
End
Attribute VB_Name = "frmDataIn"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim strNumber As String
Dim DownCount As Long
Private Sub cmdInput_Click()
    ControlLink.Text = strNumber
    Unload Me
    Set frmDataIn = Nothing
End Sub

Private Sub cmdNumber_Click(Index As Integer)
    If DownCount = 0 Then
        strNumber = ""
        DownCount = 1
    End If
    strNumber = strNumber & cmdNumber(Index).Caption
    txtNumber.Text = strNumber
End Sub

Private Sub Command1_Click()
    txtNumber.Text = ""
    strNumber = ""
End Sub

Private Sub Command3_Click()
    If strNumber <> "" Then
        strNumber = Mid(strNumber, 1, Len(strNumber) - 1)
        txtNumber.Text = strNumber
    End If
End Sub

Private Sub Form_Resize()
    strNumber = txtNumber.Text
End Sub

⌨️ 快捷键说明

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