📄 main.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.MDIForm MDIForm1
BackColor = &H8000000C&
Caption = "串口测试软件"
ClientHeight = 5880
ClientLeft = 60
ClientTop = -3585
ClientWidth = 9030
LinkTopic = "MDIForm1"
StartUpPosition = 2 '屏幕中心
WindowState = 2 'Maximized
Begin MSComctlLib.StatusBar StatusBar1
Align = 2 'Align Bottom
Height = 375
Left = 0
Negotiate = -1 'True
TabIndex = 0
Top = 5505
Width = 9030
_ExtentX = 15928
_ExtentY = 661
SimpleText = " "
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 6
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Alignment = 1
Object.Width = 5292
MinWidth = 5292
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Object.Width = 9701
MinWidth = 9701
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 1
Alignment = 1
Enabled = 0 'False
Object.Width = 882
MinWidth = 882
TextSave = "CAPS"
EndProperty
BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 2
Alignment = 1
Object.Width = 882
MinWidth = 882
TextSave = "NUM"
EndProperty
BeginProperty Panel5 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 6
Alignment = 1
Object.Width = 2646
MinWidth = 2646
TextSave = "2006-5-17"
EndProperty
BeginProperty Panel6 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 5
Alignment = 1
Object.Width = 1764
MinWidth = 1764
TextSave = "10:47"
EndProperty
EndProperty
End
Begin VB.Menu file
Caption = "文件"
Begin VB.Menu q
Caption = "退出"
End
End
Begin VB.Menu setcom
Caption = "设置串口"
End
Begin VB.Menu dc
Caption = "多色灯测试"
End
Begin VB.Menu data
Caption = "数显表的测试"
Begin VB.Menu sidata
Caption = "四位数显表的测试"
End
Begin VB.Menu qidata
Caption = "七位数显表的测试"
End
Begin VB.Menu si
Caption = "四通道数显表测试"
End
End
Begin VB.Menu windows
Caption = "窗口"
End
End
Attribute VB_Name = "MDIForm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public inttime As Integer '发送时间间隔
Public strset As String
Dim myarray(12) As String
Public intport As Integer '串行口号
Private Sub A_Click()
End Sub
Private Sub dc_Click()
Form2.Show
End Sub
Private Sub q_Click()
If Dir("E:\vb\excel.bz") <> "" Then '由VB关闭EXCEL
xlBook.RunAutoMacros (xlAutoClose) '执行EXCEL关闭宏
xlBook.Close (True) '关闭EXCEL工作簿
xlApp.Quit '关闭EXCEL
End If
Set xlApp = Nothing '释放EXCEL对象
End
End Sub
Private Sub qidata_Click()
Form4.Show
End Sub
Private Sub setcom_Click()
Form1.Show
End Sub
Private Sub si_Click()
Form6.Show
End Sub
Private Sub sidata_Click()
Form3.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -