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

📄 vb_test.frm

📁 vb与三菱PLC的通信例子 对初学者很有用的
💻 FRM
字号:
VERSION 4.00
Begin VB.Form Form1 
   Appearance      =   0  'Flat
   BackColor       =   &H00C0C0C0&
   Caption         =   "Form1"
   ClientHeight    =   3705
   ClientLeft      =   1920
   ClientTop       =   1485
   ClientWidth     =   5610
   BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
      Name            =   "MS Sans Serif"
      Size            =   9.75
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   ForeColor       =   &H80000008&
   Height          =   4110
   Left            =   1860
   LinkTopic       =   "Form1"
   ScaleHeight     =   3705
   ScaleWidth      =   5610
   Top             =   1140
   Width           =   5730
   Begin VB.OptionButton Option2 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      Caption         =   "Option2"
      ForeColor       =   &H80000008&
      Height          =   465
      Left            =   330
      TabIndex        =   4
      Top             =   2940
      Width           =   1545
   End
   Begin VB.OptionButton Option1 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      Caption         =   "Option1"
      ForeColor       =   &H80000008&
      Height          =   465
      Left            =   360
      TabIndex        =   3
      Top             =   2400
      Width           =   1455
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   2220
      TabIndex        =   2
      Text            =   "Text2"
      Top             =   3000
      Width           =   3075
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   2220
      TabIndex        =   1
      Text            =   "Text1"
      Top             =   1890
      Width           =   3075
   End
   Begin VB.CommandButton Command1 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      Caption         =   "Command1"
      Height          =   525
      Left            =   480
      TabIndex        =   0
      Top             =   1560
      Width           =   1455
   End
   Begin MSCommLib.MSComm MSComm1 
      Left            =   240
      Top             =   360
      _Version        =   65536
      _ExtentX        =   847
      _ExtentY        =   847
      _StockProps     =   0
      CDTimeout       =   0
      CommPort        =   1
      CTSTimeout      =   0
      DSRTimeout      =   0
      DTREnable       =   -1  'True
      Handshaking     =   0
      InBufferSize    =   1024
      InputLen        =   0
      Interval        =   1000
      NullDiscard     =   0   'False
      OutBufferSize   =   512
      ParityReplace   =   "?"
      RThreshold      =   0
      RTSEnable       =   0   'False
      Settings        =   "9600,n,8,1"
      SThreshold      =   0
   End
   Begin VB.Label Label2 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      Caption         =   "Label2"
      ForeColor       =   &H80000008&
      Height          =   405
      Left            =   2220
      TabIndex        =   6
      Top             =   2640
      Width           =   1185
   End
   Begin VB.Label Label1 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      Caption         =   "Label1"
      ForeColor       =   &H80000008&
      Height          =   315
      Left            =   2280
      TabIndex        =   5
      Top             =   1560
      Width           =   1455
   End
End
Attribute VB_Name = "Form1"
Attribute VB_Creatable = False
Attribute VB_Exposed = False


Dim keyin As String  ' keyin$
Dim TXD As String
Dim RXD As String

Private Sub Command1_Click()
 keyin$ = InputBox$("块

⌨️ 快捷键说明

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