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

📄 frmmain.frm

📁 应用串口通讯, 获取产品信息, 并与SAMPLE信息比较, 自动判断产品是否合格
💻 FRM
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form frmMain 
   Caption         =   "EEPROM Checker"
   ClientHeight    =   5370
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   9195
   LinkTopic       =   "Form1"
   ScaleHeight     =   5370
   ScaleWidth      =   9195
   StartUpPosition =   3  'Windows Default
   Begin VB.TextBox txtTestVersion 
      BackColor       =   &H80000018&
      Height          =   285
      Left            =   5880
      Locked          =   -1  'True
      TabIndex        =   17
      Top             =   480
      Width           =   3255
   End
   Begin VB.TextBox txtPCBNumber 
      BackColor       =   &H80000018&
      Height          =   285
      Left            =   840
      Locked          =   -1  'True
      TabIndex        =   15
      Top             =   480
      Width           =   3255
   End
   Begin VB.TextBox txtResultFile 
      BackColor       =   &H80000018&
      Height          =   285
      Left            =   1200
      Locked          =   -1  'True
      TabIndex        =   14
      Top             =   840
      Width           =   7935
   End
   Begin VB.TextBox txtStation 
      BackColor       =   &H80000018&
      Height          =   285
      Left            =   5880
      Locked          =   -1  'True
      TabIndex        =   12
      Top             =   120
      Width           =   3255
   End
   Begin VB.TextBox txtModel 
      BackColor       =   &H80000018&
      Height          =   285
      Left            =   840
      Locked          =   -1  'True
      TabIndex        =   10
      Top             =   120
      Width           =   3255
   End
   Begin VB.CommandButton cmdQuit 
      Height          =   495
      Left            =   8040
      Picture         =   "frmMain.frx":0000
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   4800
      Width           =   975
   End
   Begin VB.TextBox txtDuration 
      BackColor       =   &H80000013&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   3840
      TabIndex        =   8
      Top             =   4800
      Width           =   975
   End
   Begin VB.TextBox txtEndTime 
      BackColor       =   &H80000013&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   1080
      TabIndex        =   6
      Top             =   5040
      Width           =   1095
   End
   Begin VB.TextBox txtStartTime 
      BackColor       =   &H80000013&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   1080
      TabIndex        =   4
      Top             =   4800
      Width           =   1095
   End
   Begin MSFlexGridLib.MSFlexGrid gridItems 
      Height          =   3495
      Left            =   120
      TabIndex        =   2
      Top             =   1200
      Width           =   9015
      _ExtentX        =   15901
      _ExtentY        =   6165
      _Version        =   393216
      AllowBigSelection=   0   'False
      FillStyle       =   1
      GridLines       =   2
      SelectionMode   =   1
   End
   Begin MSCommLib.MSComm MSComm1 
      Left            =   5520
      Top             =   4800
      _ExtentX        =   1005
      _ExtentY        =   1005
      _Version        =   393216
      DTREnable       =   -1  'True
   End
   Begin VB.CommandButton cmdStart 
      Height          =   495
      Left            =   6960
      Picture         =   "frmMain.frx":0D42
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   4800
      Width           =   975
   End
   Begin VB.Label Label8 
      AutoSize        =   -1  'True
      Caption         =   "Test ver:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Left            =   5040
      TabIndex        =   18
      Top             =   480
      Width           =   780
   End
   Begin VB.Label Label7 
      AutoSize        =   -1  'True
      Caption         =   "PCB:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Left            =   120
      TabIndex        =   16
      Top             =   480
      Width           =   420
   End
   Begin VB.Label Label6 
      AutoSize        =   -1  'True
      Caption         =   "Result file:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Left            =   120
      TabIndex        =   13
      Top             =   840
      Width           =   915
   End
   Begin VB.Label Label5 
      AutoSize        =   -1  'True
      Caption         =   "Station:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Left            =   5040
      TabIndex        =   11
      Top             =   120
      Width           =   660
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "Model:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Left            =   120
      TabIndex        =   9
      Top             =   120
      Width           =   570
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "Duration (s):"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Left            =   2760
      TabIndex        =   7
      Top             =   4800
      Width           =   1050
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "End time:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Left            =   120
      TabIndex        =   5
      Top             =   5040
      Width           =   795
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "Start time:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Left            =   120
      TabIndex        =   3
      Top             =   4800
      Width           =   870
   End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdQuit_Click()
    Unload frmResult
    Unload frmPcb
    Unload frmAteMsgBox
    Unload Me
End Sub

Private Sub cmdStart_Click()
    ExecuteTests Me, Me.gridItems
End Sub

Private Sub Form_Initialize()
    oComm.AssignComm Me.MSComm1
    LoadTestItems Me, Me.gridItems
    
    Me.txtModel.Text = oAteResult.ModelName
    Me.txtStation.Text = oAteResult.StationName
    Me.txtResultFile.Text = oAteResult.ResultFile
    Me.txtTestVersion.Text = oAteResult.TestVersion
End Sub

Private Sub Form_Load()
    Me.Caption = Me.Caption & " (Version " & App.Major & "." & App.Minor & "." & App.Revision & ")"
End Sub

⌨️ 快捷键说明

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