frmmain.frm

来自「vb的关于上下位机通讯程序」· FRM 代码 · 共 589 行 · 第 1/2 页

FRM
589
字号
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
Begin VB.Form frmmain 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "主控界面-[1.0]"
   ClientHeight    =   7980
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   8820
   ForeColor       =   &H8000000F&
   Icon            =   "frmMain.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   MouseIcon       =   "frmMain.frx":0442
   ScaleHeight     =   7980
   ScaleWidth      =   8820
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame3 
      Caption         =   "历史纪录"
      Height          =   5295
      Left            =   120
      TabIndex        =   21
      Top             =   120
      Width           =   2535
      Begin MSFlexGridLib.MSFlexGrid Grid1 
         Height          =   4935
         Left            =   120
         TabIndex        =   24
         Top             =   240
         Width           =   2295
         _ExtentX        =   4048
         _ExtentY        =   8705
         _Version        =   393216
         Rows            =   1100
         FixedCols       =   0
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "图形显示"
      Height          =   5295
      Left            =   2760
      TabIndex        =   19
      Top             =   120
      Width           =   5895
      Begin VB.PictureBox Picture1 
         AutoRedraw      =   -1  'True
         Height          =   4935
         Left            =   120
         ScaleHeight     =   4875
         ScaleMode       =   0  'User
         ScaleWidth      =   5595
         TabIndex        =   20
         Top             =   240
         Width           =   5655
         Begin VB.TextBox txt 
            BackColor       =   &H00404040&
            ForeColor       =   &H0080FFFF&
            Height          =   285
            Left            =   0
            TabIndex        =   23
            Text            =   "Text2"
            Top             =   0
            Visible         =   0   'False
            Width           =   615
         End
         Begin VB.Timer Timer1 
            Enabled         =   0   'False
            Left            =   480
            Top             =   1920
         End
      End
   End
   Begin VB.TextBox txtcycle 
      BeginProperty DataFormat 
         Type            =   1
         Format          =   "0"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   2052
         SubFormatType   =   1
      EndProperty
      Height          =   495
      Left            =   2130
      TabIndex        =   18
      Top             =   6840
      Width           =   1215
   End
   Begin VB.ComboBox cmbdatatype 
      Height          =   300
      ItemData        =   "frmMain.frx":074C
      Left            =   120
      List            =   "frmMain.frx":0756
      TabIndex        =   16
      Top             =   6840
      Width           =   1335
   End
   Begin VB.CommandButton cmdclose 
      Caption         =   "关闭"
      Height          =   495
      Left            =   7560
      TabIndex        =   15
      Top             =   6840
      Width           =   1095
   End
   Begin VB.CommandButton cmdend 
      Caption         =   "停止"
      Height          =   495
      Left            =   5790
      TabIndex        =   14
      Top             =   6840
      Width           =   1095
   End
   Begin MSWinsockLib.Winsock Winsockhost 
      Left            =   5640
      Top             =   6000
      _ExtentX        =   741
      _ExtentY        =   741
      _Version        =   393216
      Protocol        =   1
      LocalPort       =   1001
   End
   Begin VB.CommandButton cmdStart 
      Caption         =   "开始"
      Height          =   495
      Left            =   4020
      TabIndex        =   13
      Top             =   6840
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Caption         =   "状态信息"
      Height          =   1215
      Left            =   120
      TabIndex        =   0
      Top             =   5520
      Width           =   8535
      Begin VB.TextBox txtclientPort 
         Height          =   375
         Left            =   6720
         TabIndex        =   12
         Top             =   720
         Width           =   1335
      End
      Begin VB.TextBox txtclientIP 
         Height          =   375
         Left            =   6720
         TabIndex        =   11
         Top             =   240
         Width           =   1335
      End
      Begin VB.TextBox txthostPort 
         Height          =   375
         Left            =   4125
         TabIndex        =   10
         Top             =   720
         Width           =   1335
      End
      Begin VB.TextBox txthostIP 
         Enabled         =   0   'False
         Height          =   375
         Left            =   4125
         TabIndex        =   9
         Top             =   240
         Width           =   1335
      End
      Begin VB.TextBox txtdatavalue 
         Enabled         =   0   'False
         Height          =   375
         Left            =   1725
         TabIndex        =   8
         Top             =   720
         Width           =   1335
      End
      Begin VB.TextBox txtdatano 
         Enabled         =   0   'False
         Height          =   375
         Left            =   1725
         TabIndex        =   7
         Top             =   240
         Width           =   1335
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "采样机端口"
         BeginProperty Font 
            Name            =   "华文新魏"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   210
         Index           =   5
         Left            =   5565
         TabIndex        =   6
         Top             =   720
         Width           =   1050
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "采样机IP"
         BeginProperty Font 
            Name            =   "华文新魏"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   210
         Index           =   4
         Left            =   5565
         TabIndex        =   5
         Top             =   240
         Width           =   810
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "主机端口"
         BeginProperty Font 
            Name            =   "华文新魏"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   210
         Index           =   3
         Left            =   3165
         TabIndex        =   4
         Top             =   720
         Width           =   840
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "主机IP"
         BeginProperty Font 
            Name            =   "华文新魏"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   210
         Index           =   2
         Left            =   3165
         TabIndex        =   3
         Top             =   240
         Width           =   600
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "当前采样点数"
         BeginProperty Font 
            Name            =   "华文新魏"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   210
         Index           =   0
         Left            =   360
         TabIndex        =   2
         Top             =   240
         Width           =   1260
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "当前采样值"
         BeginProperty Font 
            Name            =   "华文新魏"

⌨️ 快捷键说明

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