📄 frmcheckports.frm
字号:
VERSION 5.00
Begin VB.Form frmCheckPorts
BorderStyle = 3 'Fixed Dialog
Caption = "Find Evaluation Board"
ClientHeight = 2895
ClientLeft = 45
ClientTop = 330
ClientWidth = 4695
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2895
ScaleWidth = 4695
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.CommandButton cmdFindEvalBd
Caption = "Find Eval Board"
Height = 375
Left = 840
TabIndex = 0
Top = 2400
Width = 1695
End
Begin VB.CommandButton cmdOK
Caption = "&Cancel"
Height = 375
Left = 2880
TabIndex = 3
Top = 2400
Width = 975
End
Begin VB.CheckBox chkShowAtStartup
Caption = "Show this dialog the next time at startup."
Height = 255
Left = 720
TabIndex = 2
Top = 2040
Visible = 0 'False
Width = 3255
End
Begin VB.PictureBox picMsgFrame
BackColor = &H80000018&
Height = 1815
Left = 120
ScaleHeight = 1755
ScaleWidth = 4395
TabIndex = 1
Top = 120
Width = 4455
Begin VB.Label lblMessage
BackStyle = 0 'Transparent
Caption = "Press the ""Find Eval Board"" button below when you are ready."
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 495
Index = 1
Left = 120
TabIndex = 5
Top = 1200
Width = 4215
End
Begin VB.Label lblMessage
BackStyle = 0 'Transparent
Caption = $"frmCheckPorts.frx":0000
Height = 1095
Index = 0
Left = 120
TabIndex = 4
Top = 120
Width = 4215
End
End
End
Attribute VB_Name = "frmCheckPorts"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
End Sub
Private Sub cmdFindEvalBd_Click()
'Change the caption
Me.Caption = "Finding Evaluation Board"
Me.Visible = False
Me.Visible = True
Me.Refresh
'Detect the connection
If DetectConnection() Then
Me.Caption = "Found Evaluation Board"
Me.Visible = False
cmdOK.Caption = "&OK"
Me.Show 1, frmMain
Else
Me.Caption = "Didn't Find Evaluation Board"
Me.Visible = False
Me.Show 1, frmMain
End If
End Sub
Private Sub cmdOK_Click()
'Hide the form
Me.Hide
Unload Me
frmMain.SetFocus
End Sub
Private Sub Picture2_Click()
End Sub
Private Sub Form_Load()
lblMessage(0).Caption = "The " & ProdParams.Product & " Evaluation Software will now test all Parallel Printer Ports on the computer to try and find which one has a " & ProdParams.Product & " Evaluation Board connected to it. Make sure that you have the " & ProdParams.Product & " Evaluation Board powered up and connected to a parallel printer port on your computer."
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -