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

📄 frmsetautoexecoption.frm

📁 VB代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmSetAutoExecOption 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "设置自动执行的操作"
   ClientHeight    =   4200
   ClientLeft      =   36
   ClientTop       =   360
   ClientWidth     =   5484
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4200
   ScaleWidth      =   5484
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton CmdCancel 
      Caption         =   "取消"
      Height          =   492
      Left            =   3240
      TabIndex        =   2
      Top             =   3480
      Width           =   1452
   End
   Begin VB.CommandButton CmdOk 
      Caption         =   "确定"
      Height          =   492
      Left            =   480
      TabIndex        =   1
      Top             =   3480
      Width           =   1452
   End
   Begin VB.Frame Frame1 
      Caption         =   "请选择"
      Height          =   2892
      Left            =   480
      TabIndex        =   0
      Top             =   240
      Width           =   4452
      Begin VB.Frame FrmSelectLockLevel 
         Caption         =   "加密等级设定"
         Height          =   1812
         Left            =   2280
         TabIndex        =   9
         Top             =   960
         Width           =   1812
         Begin VB.OptionButton OptLevel2 
            Caption         =   "加密等级2"
            Height          =   252
            Left            =   240
            TabIndex        =   12
            Top             =   840
            Width           =   1092
         End
         Begin VB.OptionButton OptLevel3 
            Caption         =   "加密等级3"
            Enabled         =   0   'False
            Height          =   252
            Left            =   240
            TabIndex        =   11
            Top             =   1320
            Value           =   -1  'True
            Width           =   1212
         End
         Begin VB.OptionButton OptLevel1 
            Caption         =   "加密等级1"
            Enabled         =   0   'False
            Height          =   252
            Left            =   240
            TabIndex        =   10
            Top             =   360
            Width           =   1452
         End
      End
      Begin VB.CheckBox ChkCheckBank 
         Caption         =   "查空"
         Height          =   372
         Left            =   720
         TabIndex        =   8
         Top             =   1440
         Width           =   852
      End
      Begin VB.CheckBox ChkEraseChip 
         Caption         =   "擦除操作"
         Height          =   372
         Left            =   720
         TabIndex        =   7
         Top             =   960
         Width           =   1092
      End
      Begin VB.CheckBox ChkReadDeviceSignature 
         Caption         =   "检查特征字"
         Height          =   372
         Left            =   720
         TabIndex        =   6
         Top             =   480
         Width           =   1212
      End
      Begin VB.CheckBox ChkLockBits 
         Caption         =   "加密"
         Height          =   252
         Left            =   2280
         TabIndex        =   5
         Top             =   600
         Width           =   972
      End
      Begin VB.CheckBox ChkVerifyCode 
         Caption         =   "校验"
         Height          =   252
         Left            =   720
         TabIndex        =   4
         Top             =   2400
         Width           =   1092
      End
      Begin VB.CheckBox ChkProgramCode 
         Caption         =   "编程"
         Height          =   252
         Left            =   720
         TabIndex        =   3
         Top             =   1920
         Width           =   852
      End
   End
End
Attribute VB_Name = "FrmSetAutoExecOption"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub ChkLockBits_Click()
    If (FrmSetAutoExecOption.ChkLockBits.Value = vbChecked) Then
        OptLevel1.Enabled = True
        OptLevel2.Enabled = True
        OptLevel3.Enabled = True
    Else
        OptLevel1.Enabled = False
        OptLevel2.Enabled = False
        OptLevel3.Enabled = False
    End If
End Sub

Private Sub cmdCancel_Click()
    Unload Me
    
End Sub


Private Sub cmdOK_Click()
    If (FrmSetAutoExecOption.ChkReadDeviceSignature.Value = vbChecked) Then
        UserDefineAutoExecOption.bReadDeviceSignature = True
    Else
        UserDefineAutoExecOption.bReadDeviceSignature = False
    End If
    
    If (FrmSetAutoExecOption.ChkEraseChip.Value = vbChecked) Then
        UserDefineAutoExecOption.bEraseChip = True
    Else
        UserDefineAutoExecOption.bEraseChip = False
    End If
    
    If (FrmSetAutoExecOption.ChkCheckBank.Value = vbChecked) Then
        UserDefineAutoExecOption.bCheckBank = True
    Else
        UserDefineAutoExecOption.bCheckBank = False
    End If
    
    If (FrmSetAutoExecOption.ChkProgramCode.Value = vbChecked) Then
        UserDefineAutoExecOption.bProgramCode = True
    Else
        UserDefineAutoExecOption.bProgramCode = False
    End If
    
    If (FrmSetAutoExecOption.ChkVerifyCode.Value = vbChecked) Then
        UserDefineAutoExecOption.bVerify = True
    Else
        UserDefineAutoExecOption.bVerify = False
    End If
    
    If (FrmSetAutoExecOption.ChkLockBits.Value = vbChecked) Then
        UserDefineAutoExecOption.bLockBits = True
        
        If (OptLevel1.Value = True) Then
            ucCurrentLockLevel = c_LockType_LockLevel1
        End If
                
        If (OptLevel2.Value = True) Then
            ucCurrentLockLevel = c_LockType_LockLevel2
        End If
        
        If (OptLevel3.Value = True) Then
            ucCurrentLockLevel = c_LockType_LockLevel3
        End If

    Else
    
        UserDefineAutoExecOption.bLockBits = False
        
    End If

    Unload Me
    
End Sub

Private Sub Form_Load()

    If (UserDefineAutoExecOption.bReadDeviceSignature) Then
        FrmSetAutoExecOption.ChkReadDeviceSignature.Value = vbChecked
    Else
        FrmSetAutoExecOption.ChkReadDeviceSignature.Value = vbUnchecked
    End If
    
    If (UserDefineAutoExecOption.bEraseChip) Then
    
        FrmSetAutoExecOption.ChkEraseChip.Value = vbChecked
    Else
        FrmSetAutoExecOption.ChkEraseChip.Value = vbUnchecked
    End If
    
    If (UserDefineAutoExecOption.bCheckBank) Then
        FrmSetAutoExecOption.ChkCheckBank.Value = vbChecked
    Else
        FrmSetAutoExecOption.ChkCheckBank.Value = vbUnchecked
    End If
    
    If (UserDefineAutoExecOption.bProgramCode) Then
    
        FrmSetAutoExecOption.ChkProgramCode.Value = vbChecked
    Else
        FrmSetAutoExecOption.ChkProgramCode.Value = vbUnchecked
    End If
    
    If (UserDefineAutoExecOption.bVerify) Then
        FrmSetAutoExecOption.ChkVerifyCode.Value = vbChecked
    Else
        FrmSetAutoExecOption.ChkVerifyCode.Value = vbUnchecked
    End If
    
    If (UserDefineAutoExecOption.bLockBits) Then
        FrmSetAutoExecOption.ChkLockBits.Value = vbChecked
    Else
        FrmSetAutoExecOption.ChkLockBits.Value = vbUnchecked
    End If
End Sub

Private Sub Frame2_DragDrop(Source As Control, X As Single, Y As Single)

End Sub

Private Sub Option1_Click()

End Sub

⌨️ 快捷键说明

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