📄 out.frm
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form Out
BackColor = &H80000009&
Caption = "数据传输"
ClientHeight = 3945
ClientLeft = 60
ClientTop = 345
ClientWidth = 4170
LinkTopic = "Form1"
ScaleHeight = 3945
ScaleWidth = 4170
StartUpPosition = 3 '窗口缺省
Begin MSCommLib.MSComm MSComm1
Left = 240
Top = 3240
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
DTREnable = -1 'True
End
Begin VB.CommandButton CEnd
Caption = "结束"
Height = 375
Left = 1320
TabIndex = 3
Top = 3240
Width = 1335
End
Begin VB.CommandButton COut
Caption = "发送"
Height = 375
Left = 1320
TabIndex = 2
Top = 2760
Width = 1335
End
Begin VB.TextBox TOut
Height = 1935
Left = 840
TabIndex = 1
Text = "TOut"
Top = 720
Width = 2415
End
Begin VB.Label Label1
BackColor = &H8000000E&
Caption = "发送数据区"
Height = 255
Left = 1440
TabIndex = 0
Top = 480
Width = 975
End
End
Attribute VB_Name = "Out"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim StrOut As String
Private Sub CEnd_Click()
MSComm1.PortOpen = False
Unload Me
End Sub
Private Sub COut_Click()
MSComm1.CommPort = 1 '指定com1作为通信端口
MSComm1.PortOpen = True '打开指定端口
StrOut = TOut.Text
MSComm1.Output = StrOut
SaveSetting "TestComm", "SEC1", "KEY1", StrOut
End Sub
Private Sub Form_Load()
TOut.Text = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -