?? 事件自動接收.frm
字號:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 4545
ClientLeft = 60
ClientTop = 345
ClientWidth = 6240
LinkTopic = "Form1"
ScaleHeight = 4545
ScaleWidth = 6240
StartUpPosition = 3 '窗口缺省
Begin MSCommLib.MSComm MSComm1
Left = 4920
Top = 960
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
DTREnable = -1 'True
RThreshold = 1
End
Begin VB.CommandButton Command2
Caption = "Command2"
Height = 495
Left = 3720
TabIndex = 2
Top = 2640
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 495
Left = 1320
TabIndex = 1
Top = 2640
Width = 1455
End
Begin VB.Label Label1
BorderStyle = 1 'Fixed Single
Height = 1335
Left = 1800
TabIndex = 0
Top = 840
Width = 2415
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Label1.Caption = ""
End Sub
Private Sub Command2_Click()
MSComm1.PortOpen = False
End
End Sub
Private Sub Form_Load()
MSComm1.PortOpen = True
End Sub
Private Sub MSComm1_OnComm()
Select Case MSComm1.CommEvent
Case comEvReceive
Label1.Caption = Label1.Caption + Trim(MSComm1.Input)
End Select
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -