?? 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 + -