frmportspy.frm

来自「一个modbus的测试工具」· FRM 代码 · 共 92 行

FRM
92
字号
VERSION 5.00
Begin VB.Form frmPortSpy 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "端口监视器"
   ClientHeight    =   4890
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   9030
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   9.75
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "frmPortSpy.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4890
   ScaleWidth      =   9030
   StartUpPosition =   1  'CenterOwner
   Begin VB.CommandButton cmdExit 
      Cancel          =   -1  'True
      Caption         =   "退  出"
      Height          =   375
      Left            =   7680
      TabIndex        =   3
      Top             =   4320
      Width           =   1095
   End
   Begin VB.CommandButton cmdStop 
      Caption         =   "停  止"
      Enabled         =   0   'False
      Height          =   375
      Left            =   2040
      TabIndex        =   2
      Top             =   4320
      Width           =   1095
   End
   Begin VB.CommandButton cmdStart 
      Caption         =   "开  始"
      Height          =   375
      Left            =   360
      TabIndex        =   1
      Top             =   4320
      Width           =   1095
   End
   Begin VB.TextBox txtCOMSpy 
      Height          =   3975
      Left            =   120
      Locked          =   -1  'True
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   0
      Top             =   120
      Width           =   8775
   End
End
Attribute VB_Name = "frmPortSpy"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdExit_Click()
    Unload Me
End Sub

Private Sub cmdStart_Click()
    cmdStart.Enabled = False
    cmdStop.Enabled = True
    gbSpy = True
End Sub

Private Sub cmdStop_Click()
    gbSpy = False
    cmdStop.Enabled = False
    cmdStart.Enabled = True
End Sub

Private Sub Form_Load()
    gbSpy = False
End Sub

Private Sub Form_Unload(Cancel As Integer)
    gbSpy = False
End Sub

⌨️ 快捷键说明

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