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

📄 form5.frm

📁 MCS-51单片机双机通信实现程序原代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form5 
   Caption         =   "Form5"
   ClientHeight    =   2340
   ClientLeft      =   60
   ClientTop       =   465
   ClientWidth     =   4380
   LinkTopic       =   "Form5"
   ScaleHeight     =   2340
   ScaleWidth      =   4380
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command3 
      Caption         =   "退出"
      Height          =   375
      Left            =   2760
      MaskColor       =   &H000000FF&
      TabIndex        =   5
      Top             =   1320
      Width           =   855
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   1560
      TabIndex        =   4
      Top             =   1320
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   360
      TabIndex        =   3
      Top             =   1320
      Width           =   975
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   2280
      TabIndex        =   0
      Top             =   480
      Width           =   1095
   End
   Begin VB.Label Label2 
      Caption         =   "%"
      Height          =   255
      Left            =   3600
      TabIndex        =   2
      Top             =   600
      Width           =   375
   End
   Begin VB.Label Label1 
      Caption         =   "请输入报警浓度值:"
      Height          =   255
      Left            =   480
      TabIndex        =   1
      Top             =   600
      Width           =   1695
   End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
 Dim alarm_value As Single
 
Private Sub Command1_Click()
    If Text1.Text < 0 And Text1.Text >= 100 Then MsgBox "请输入正确的浓度值!"
    alarm_value = Text1.Text
    Form5.Hide
    
End Sub

Private Sub Command2_Click()
     Dim alarm_value As Single
     Text1.Text = 0
    alarm_value = Text1.Text

End Sub

Private Sub Command3_Click()
Unload Me

End Sub

⌨️ 快捷键说明

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