📄 frmmain.frm
字号:
VERSION 5.00
Begin VB.Form frmMain
AutoRedraw = -1 'True
Caption = "串行通信(PC—51单片机)"
ClientHeight = 4530
ClientLeft = 60
ClientTop = 345
ClientWidth = 4740
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 4530
ScaleWidth = 4740
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cmdEnd
Caption = "结束"
Height = 615
Left = 1320
TabIndex = 3
Top = 3360
Width = 1815
End
Begin VB.CommandButton cmdComm
Caption = "数据传输"
Height = 615
Left = 1320
TabIndex = 2
Top = 2280
Width = 1815
End
Begin VB.CommandButton cmdCheck
Caption = "串口检测"
Height = 615
Left = 1320
TabIndex = 1
Top = 1200
Width = 1815
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "与51单片机的串行通信"
BeginProperty Font
Name = "隶书"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 300
Left = 840
TabIndex = 0
Top = 360
Width = 3000
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCheck_Click()
frmMain.Hide '隐含主窗体
frmCheck.Show '显示检测窗体
End Sub
Private Sub cmdComm_Click()
frmMain.Hide '隐含主窗体
frmComm.Show '显示通信窗体
End Sub
Private Sub cmdEnd_Click()
End
End Sub
Private Sub Form_Load()
sPort = 1 '默认使用串行口1
sBoud = "1200,n,8,1" '默认使用1200波特,无校验,8位数据位,1位停止位
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -