⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainform.frm

📁 ISAbankaqudong henhaoyongdeshigehaoruanjian
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Mainform 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "PC7423测试程序(Visual Basic 5.0)...."
   ClientHeight    =   4260
   ClientLeft      =   2220
   ClientTop       =   1365
   ClientWidth     =   4635
   BeginProperty Font 
      Name            =   "System"
      Size            =   12
      Charset         =   134
      Weight          =   700
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "Mainform.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   4260
   ScaleWidth      =   4635
   Begin VB.TextBox delayedit 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   270
      Left            =   2520
      TabIndex        =   6
      ToolTipText     =   "输入十进制数"
      Top             =   960
      Width           =   1215
   End
   Begin VB.CommandButton adtest 
      Caption         =   "AD测试"
      Height          =   495
      Left            =   1373
      TabIndex        =   2
      Top             =   1680
      Width           =   1815
   End
   Begin VB.CommandButton exit 
      Cancel          =   -1  'True
      Caption         =   "退    出"
      Default         =   -1  'True
      Height          =   495
      Left            =   1373
      TabIndex        =   4
      Top             =   3120
      Width           =   1815
   End
   Begin VB.CommandButton helptest 
      Caption         =   "帮    助"
      Height          =   495
      Left            =   1373
      TabIndex        =   3
      Top             =   2400
      Width           =   1815
   End
   Begin VB.TextBox portedit 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   270
      Left            =   2453
      TabIndex        =   1
      ToolTipText     =   "十六进制数0 -- 3ff"
      Top             =   465
      Width           =   1215
   End
   Begin VB.Label delayLabel2 
      AutoSize        =   -1  'True
      Caption         =   "延时设置(delay):"
      Height          =   240
      Left            =   840
      TabIndex        =   7
      Top             =   975
      Width           =   1680
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BorderStyle     =   1  'Fixed Single
      Caption         =   "北京宏拓控制技术有限责任公司"
      BeginProperty Font 
         Name            =   "魏碑"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   50
      TabIndex        =   5
      Top             =   3720
      Width           =   4545
      WordWrap        =   -1  'True
   End
   Begin VB.Label plable 
      AutoSize        =   -1  'True
      Caption         =   "端口地址(HEX):"
      Height          =   240
      Left            =   893
      TabIndex        =   0
      Top             =   480
      Width           =   1560
   End
End
Attribute VB_Name = "Mainform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub adtest_Click()
 k = jlport
 delay = CLng(Val(delayedit))
 If k = 1 Then AdForm.Show
End Sub


Private Sub Exit_Click()
 x = MsgBox("真的想退出[PC7423测试程序]吗?!", vbYesNo + vbExclamation, "退出")
 If x = vbYes Then
  End
 End If
End Sub
Private Sub Form_Load()
 portedit = 300
 delayedit = 3000
End Sub
Private Sub helptest_Click()
 ts
 frmAbout.Show
End Sub
'板口地址输入判断函数
Public Function jlport() As Integer
'判断port是否为空
 If portedit = "" Then
   k = MsgBox("板口地址没有输入,请输入,范围在(0--3FFH)!", vbQuestion, "板口地址输入")
   jlport = 0
 Else
  port = Val("&h" & portedit)
  '判断port是否在正确范围内
  If port > 0 And port <= &H3FF Then
    jlport = 1
  Else
    k = MsgBox("板口地址输入错误,请重新输入,范围在(0--3FFH)!", vbQuestion, "板口地址输入")
    jlport = 0
  End If
 End If
End Function

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -