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

📄 frmreg.frm

📁 VB+ACCESS2000编写的VCD出租管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmREG 
   BackColor       =   &H00FF8080&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "注册"
   ClientHeight    =   1800
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4155
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1800
   ScaleWidth      =   4155
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      BackColor       =   &H0080C0FF&
      Caption         =   "取消"
      Height          =   375
      Left            =   3000
      Style           =   1  'Graphical
      TabIndex        =   5
      Top             =   1320
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      BackColor       =   &H0080C0FF&
      Caption         =   "注册"
      Height          =   375
      Left            =   1920
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   1320
      Width           =   975
   End
   Begin VB.TextBox Text2 
      Appearance      =   0  'Flat
      BackColor       =   &H00FFC0FF&
      Height          =   375
      Left            =   1560
      TabIndex        =   3
      Top             =   840
      Width           =   2415
   End
   Begin VB.TextBox Text1 
      Appearance      =   0  'Flat
      BackColor       =   &H00FFC0FF&
      Height          =   375
      Left            =   1560
      TabIndex        =   1
      Top             =   240
      Width           =   2415
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "注册码:"
      ForeColor       =   &H00FFFFFF&
      Height          =   180
      Left            =   600
      TabIndex        =   2
      Top             =   960
      Width           =   720
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "你的名称:"
      ForeColor       =   &H00FFFFFF&
      Height          =   180
      Left            =   600
      TabIndex        =   0
      Top             =   360
      Width           =   900
   End
End
Attribute VB_Name = "frmREG"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
Dim SQL As String
If Text1.Text = "" Then
   MsgBox "名称不能为空!", vbInformation + vbOKOnly, "提示"
   Text1.SetFocus
   Exit Sub
End If
If Text2.Text = "" Then
   MsgBox "注册码为空怎么注册呢?返回重来!", vbInformation + vbOKOnly, "提示"
   Text2.SetFocus
   Exit Sub
End If
SQL = "select * from RegSoftWare where 注册码=""" & Text2.Text & """"
OpenDBFile
OpenRS (SQL)
If Not gRst.EOF Then
    CloseRS
    OpenDBFile
    gCon.Execute "update logdate set 日期=#" & "1981-1-1" & "#,单位=""" & Text1.Text & """ where 编码=99"
    CloseDBFile
    MDIForm1.MdZhuC.Visible = False
    MsgBox "注册成功,请重新登陆!", vbInformation + vbOKOnly, "信息"
    Unload Me
Else
    CloseRS
    MsgBox "对不起,你输入的注册码不正确!", vbInformation + vbOKOnly, "警告"
    Text2.Text = ""
    Text2.SetFocus
End If
    
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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