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

📄 keygen.frm

📁 大量优秀的vb编程
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmKeyGen 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "产生序列号"
   ClientHeight    =   3072
   ClientLeft      =   -96
   ClientTop       =   -672
   ClientWidth     =   4296
   ControlBox      =   0   'False
   Icon            =   "KeyGen.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3072
   ScaleWidth      =   4296
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "产生序列号"
      Height          =   372
      Left            =   600
      TabIndex        =   10
      Top             =   2520
      Width           =   1692
   End
   Begin VB.CommandButton Command1 
      Caption         =   "退出程序"
      Height          =   372
      Left            =   2280
      TabIndex        =   9
      Top             =   2520
      Width           =   1692
   End
   Begin VB.ComboBox cmbKeyType 
      Appearance      =   0  'Flat
      BackColor       =   &H80000000&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   7.8
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000007&
      Height          =   288
      ItemData        =   "KeyGen.frx":0CCA
      Left            =   1560
      List            =   "KeyGen.frx":0CDA
      Style           =   2  'Dropdown List
      TabIndex        =   3
      Top             =   1920
      Width           =   1575
   End
   Begin VB.TextBox txtPassword 
      Appearance      =   0  'Flat
      BackColor       =   &H80000000&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   7.8
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000007&
      Height          =   315
      IMEMode         =   3  'DISABLE
      Left            =   1560
      TabIndex        =   1
      Top             =   960
      Width           =   2496
   End
   Begin VB.TextBox txtName 
      Appearance      =   0  'Flat
      BackColor       =   &H80000000&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   7.8
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000007&
      Height          =   315
      Left            =   1560
      TabIndex        =   0
      Top             =   480
      Width           =   2496
   End
   Begin VB.TextBox txtKey 
      Appearance      =   0  'Flat
      BackColor       =   &H80000000&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   7.8
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000007&
      Height          =   315
      Left            =   1560
      Locked          =   -1  'True
      TabIndex        =   2
      Top             =   1440
      Width           =   2496
   End
   Begin VB.Label Label4 
      Caption         =   "序列号类型:"
      Height          =   252
      Left            =   240
      TabIndex        =   8
      Top             =   1920
      Width           =   1212
   End
   Begin VB.Label Label3 
      Caption         =   "产品序列号:"
      Height          =   252
      Left            =   240
      TabIndex        =   7
      Top             =   1440
      Width           =   1212
   End
   Begin VB.Label Label2 
      Caption         =   "产品编号:"
      Height          =   252
      Left            =   240
      TabIndex        =   6
      Top             =   960
      Width           =   1212
   End
   Begin VB.Label Label1 
      Caption         =   "用户名称:"
      Height          =   252
      Left            =   240
      TabIndex        =   5
      Top             =   480
      Width           =   1212
   End
   Begin VB.Label lblAppTitle 
      BackStyle       =   0  'Transparent
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   7.8
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFFFF&
      Height          =   240
      Left            =   255
      TabIndex        =   4
      Top             =   45
      Width           =   1455
   End
End
Attribute VB_Name = "frmKeyGen"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
    End
End Sub

Private Sub Command2_Click()
If txtName <> "" Or txtPassword <> "" Then
    txtKey.Text = KeyGen(txtName, txtPassword, cmbKeyType.ListIndex + 1)
End If

End Sub

Private Sub Form_Load()
cmbKeyType.Clear
cmbKeyType.AddItem ("Numeric")
cmbKeyType.AddItem ("Alphanumeric")
cmbKeyType.AddItem ("Hex")
cmbKeyType.ListIndex = 0
cmbKeyType.Text = cmbKeyType.List(0)
End Sub

Private Sub imgAbout_Click()
Dim msg As String
msg = "Copyright 

⌨️ 快捷键说明

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