📄 in.frm
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form FORM1
BackColor = &H8000000E&
Caption = "数据传输"
ClientHeight = 3735
ClientLeft = 60
ClientTop = 345
ClientWidth = 4260
LinkTopic = "Form1"
ScaleHeight = 3735
ScaleWidth = 4260
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox TIn
Height = 1935
Left = 720
TabIndex = 2
Text = "TIn"
Top = 840
Width = 2415
End
Begin VB.CommandButton CIn
Caption = "接受"
Height = 375
Left = 1200
TabIndex = 1
Top = 2880
Width = 1335
End
Begin VB.CommandButton CEnd
Caption = "结束"
Height = 375
Left = 1200
TabIndex = 0
Top = 3360
Width = 1335
End
Begin MSCommLib.MSComm MSComm1
Left = 120
Top = 3120
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
DTREnable = -1 'True
End
Begin VB.Label Label1
BackColor = &H8000000E&
Caption = "接受数据区"
Height = 255
Left = 1440
TabIndex = 3
Top = 480
Width = 975
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim StrIn As String
Private Sub CEnd_Click()
MSComm1.PortOpen = False
Unload Me
End Sub
Private Sub CIn_Click()
MSComm1.CommPort = 1
MSComm1.PortOpen = True
MSComm1.InputLen = 0
StrIn = MSComm1.Input
StrIn = GetSetting("TestComm", "SEC1", "KEY1")
TIn.Text = StrIn
End Sub
Private Sub Form_Load()
TIn.Text = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -