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

📄 frmmain.frm

📁 这是一本学习串口编程喝计算机监控的好书里面是用VB开发的源代码
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
Begin VB.Form frmMain 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Virtual Master for TCP"
   ClientHeight    =   6720
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   6360
   Icon            =   "frmMain.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   6720
   ScaleWidth      =   6360
   StartUpPosition =   2  'CenterScreen
   Begin VB.Timer timerStatus 
      Interval        =   200
      Left            =   960
      Top             =   6360
   End
   Begin MSWinsockLib.Winsock tcpWinsock 
      Left            =   5880
      Top             =   3480
      _ExtentX        =   741
      _ExtentY        =   741
      _Version        =   393216
   End
   Begin VB.CommandButton cmdInq 
      Caption         =   "Inquery"
      Height          =   375
      Left            =   4320
      TabIndex        =   22
      Top             =   2040
      Width           =   855
   End
   Begin VB.CommandButton cmdRingOff 
      Caption         =   "Ring Off"
      Height          =   375
      Left            =   5040
      TabIndex        =   17
      Top             =   1560
      Width           =   855
   End
   Begin VB.CommandButton cmdRingOn 
      Caption         =   "Ring On"
      Height          =   375
      Left            =   3720
      TabIndex        =   16
      Top             =   1560
      Width           =   855
   End
   Begin VB.CommandButton cmdLampOff 
      Caption         =   "Lamp Off"
      Height          =   375
      Left            =   5040
      TabIndex        =   15
      Top             =   1080
      Width           =   855
   End
   Begin VB.CommandButton cmdLampOn 
      Caption         =   "Lamp On"
      Height          =   375
      Left            =   3720
      TabIndex        =   14
      Top             =   1080
      Width           =   855
   End
   Begin VB.Frame Frame6 
      Caption         =   "Ring Status"
      Height          =   615
      Left            =   600
      TabIndex        =   11
      Top             =   1560
      Width           =   2295
      Begin VB.OptionButton optRing 
         Caption         =   "OFF"
         Enabled         =   0   'False
         Height          =   195
         Index           =   1
         Left            =   1320
         TabIndex        =   13
         Top             =   240
         Value           =   -1  'True
         Width           =   855
      End
      Begin VB.OptionButton optRing 
         Caption         =   "ON"
         Enabled         =   0   'False
         Height          =   195
         Index           =   0
         Left            =   120
         TabIndex        =   12
         Top             =   240
         Width           =   1095
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "Lamp Status"
      Height          =   615
      Left            =   600
      TabIndex        =   8
      Top             =   840
      Width           =   2295
      Begin VB.OptionButton optLamp 
         Caption         =   "ON"
         Enabled         =   0   'False
         Height          =   195
         Index           =   0
         Left            =   120
         TabIndex        =   10
         Top             =   240
         Width           =   1095
      End
      Begin VB.OptionButton optLamp 
         Caption         =   "OFF"
         Enabled         =   0   'False
         Height          =   195
         Index           =   1
         Left            =   1320
         TabIndex        =   9
         Top             =   240
         Value           =   -1  'True
         Width           =   855
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "Mode"
      Height          =   615
      Left            =   600
      TabIndex        =   5
      Top             =   120
      Width           =   2295
      Begin VB.OptionButton optMode 
         Caption         =   "Manual"
         Height          =   195
         Index           =   1
         Left            =   1320
         TabIndex        =   7
         Top             =   240
         Value           =   -1  'True
         Width           =   855
      End
      Begin VB.OptionButton optMode 
         Caption         =   "Automatic"
         Height          =   195
         Index           =   0
         Left            =   120
         TabIndex        =   6
         Top             =   240
         Width           =   1095
      End
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   255
      Left            =   0
      TabIndex        =   4
      Top             =   6465
      Width           =   6360
      _ExtentX        =   11218
      _ExtentY        =   450
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   3
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   8026
            MinWidth        =   8026
            Text            =   "Status:"
            TextSave        =   "Status:"
            Key             =   "TcpStatus"
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   1411
            MinWidth        =   1411
            Text            =   "ADD: "
            TextSave        =   "ADD: "
            Key             =   "Address"
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   1676
            MinWidth        =   1676
            Text            =   "Interval:"
            TextSave        =   "Interval:"
            Key             =   "tInterval"
         EndProperty
      EndProperty
   End
   Begin VB.CommandButton cmdClose 
      Caption         =   "Close"
      Height          =   375
      Left            =   5040
      TabIndex        =   3
      Top             =   360
      Width           =   855
   End
   Begin VB.CommandButton cmdSetup 
      Caption         =   "Setup"
      Default         =   -1  'True
      Height          =   375
      Left            =   3720
      TabIndex        =   2
      Top             =   360
      Width           =   855
   End
   Begin VB.Timer timerIn 
      Enabled         =   0   'False
      Interval        =   20000
      Left            =   2520
      Top             =   4800
   End
   Begin VB.Timer timerComm 
      Enabled         =   0   'False
      Left            =   5520
      Top             =   3480
   End
   Begin VB.Frame Frame5 
      BorderStyle     =   0  'None
      Height          =   255
      Left            =   3240
      TabIndex        =   0
      Top             =   2400
      Width           =   375
      Begin VB.Image imgNotConnected 
         Height          =   240
         Left            =   0
         Picture         =   "frmMain.frx":0442
         Stretch         =   -1  'True
         ToolTipText     =   "Toggles Port"
         Top             =   0
         Width           =   240
      End
      Begin VB.Image imgConnected 
         Height          =   240
         Left            =   0
         Picture         =   "frmMain.frx":058C
         Stretch         =   -1  'True
         ToolTipText     =   "Toggles Port"
         Top             =   0
         Width           =   240
      End
   End
   Begin VB.Label Label4 
      Caption         =   "④"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   360
      TabIndex        =   21
      Top             =   5280
      Width           =   255
   End
   Begin VB.Label Label1 
      Caption         =   "①"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   2520
      TabIndex        =   18
      Top             =   6240
      Width           =   255
   End
   Begin VB.Label Label2 
      Caption         =   "②"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   6000
      TabIndex        =   19
      Top             =   5040
      Width           =   255
   End
   Begin VB.Label Label3 
      Caption         =   "③"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   2760
      TabIndex        =   20
      Top             =   3120
      Width           =   255
   End
   Begin VB.Image imgCar 

⌨️ 快捷键说明

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