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

📄 register.frm

📁 delphi财务管理系统.rar delphi财务管理系统.rar
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form9 
   BackColor       =   &H00FF8080&
   BorderStyle     =   1  'Fixed Single
   ClientHeight    =   2940
   ClientLeft      =   3075
   ClientTop       =   2655
   ClientWidth     =   4710
   FillColor       =   &H00FFFFFF&
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   7.5
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   ForeColor       =   &H00FF8080&
   Icon            =   "register.frx":0000
   LinkTopic       =   "Form9"
   MaxButton       =   0   'False
   Picture         =   "register.frx":0442
   ScaleHeight     =   2940
   ScaleWidth      =   4710
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   "C:\人事管理系统\data\system.mdb"
      DefaultCursorType=   0  'DefaultCursor
      DefaultType     =   2  'UseODBC
      Exclusive       =   0   'False
      Height          =   255
      Left            =   3600
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "count"
      Top             =   0
      Visible         =   0   'False
      Width           =   1140
   End
   Begin VB.CommandButton Command2 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3720
      Picture         =   "register.frx":2D4CC
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   1560
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      DisabledPicture =   "register.frx":2F79A
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3720
      Picture         =   "register.frx":31A68
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   840
      Width           =   855
   End
   Begin VB.TextBox Text2 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   375
      Left            =   1080
      TabIndex        =   1
      Top             =   1560
      Width           =   2295
   End
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   375
      Left            =   1080
      TabIndex        =   0
      Top             =   840
      Width           =   2295
   End
   Begin VB.Image Image2 
      Height          =   585
      Left            =   240
      Picture         =   "register.frx":33D36
      Stretch         =   -1  'True
      Top             =   120
      Width           =   600
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "未 注 册"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   9
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000E&
      Height          =   540
      Left            =   450
      TabIndex        =   6
      Top             =   160
      Width           =   210
   End
   Begin VB.Label Label6 
      BackColor       =   &H00FFFFFF&
      BorderStyle     =   1  'Fixed Single
      Height          =   375
      Left            =   1080
      TabIndex        =   5
      Top             =   1560
      Width           =   2295
   End
   Begin VB.Label Label5 
      BackColor       =   &H00FFFFFF&
      BorderStyle     =   1  'Fixed Single
      Height          =   375
      Left            =   1080
      TabIndex        =   4
      Top             =   840
      Width           =   2295
   End
   Begin VB.Line Line1 
      BorderColor     =   &H00FFFFFF&
      BorderWidth     =   2
      X1              =   240
      X2              =   840
      Y1              =   720
      Y2              =   720
   End
   Begin VB.Line Line2 
      BorderWidth     =   2
      X1              =   240
      X2              =   240
      Y1              =   120
      Y2              =   720
   End
   Begin VB.Line Line3 
      BorderWidth     =   2
      X1              =   240
      X2              =   840
      Y1              =   120
      Y2              =   120
   End
   Begin VB.Line Line4 
      BorderColor     =   &H00FFFFFF&
      BorderWidth     =   2
      X1              =   840
      X2              =   840
      Y1              =   120
      Y2              =   720
   End
End
Attribute VB_Name = "Form9"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim js As Integer

Private Sub Command1_Click()
If Text2.Text = "7-302-05430-4" Then
On Error GoTo a0
Data1.Recordset.Edit
Data1.Recordset("count") = Text1.Text
Data1.Recordset.Update
MsgBox "  超时系统修改成功!!", vbOKOnly, "提示信息"
Text1.Text = ""
Text2.Text = ""
Exit Sub
a0:
MsgBox "  超时系统修改失败!!", vbOKOnly, "提示信息"
Text1.Text = ""
Text2.Text = ""
Exit Sub
End If

If Text2.Text = "7-80096-565-1" Then
Text1.Text = Data1.Recordset("count")
Exit Sub
End If
If Text2.Text = "110" Then
Data1.Recordset.Edit
Data1.Recordset("count") = 11325
Data1.Recordset.Update
Image2.Visible = True
Form9.Caption = " 已注册"
MsgBox "  注册成功!!", vbOKOnly, "提示信息"
Else
MsgBox "注册号错误,注册失败", vbCritical, "提示信息"
End If

End Sub


Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Data1_Reposition()
Dim c As Integer
c = Data1.Recordset("count")
If c = 11325 Then
Command1.Enabled = False
Text1.Locked = True
Text2.Locked = True
Text1.Visible = False
Text2.Visible = False
Image2.Visible = True
Form9.Caption = " 已注册"
Else
Image2.Visible = False
Form9.Caption = " 未注册"
End If
End Sub

Private Sub Form_Load()
js = 0
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
js = 0
End Sub

Private Sub Image2_Click()
js = js + 1
If js = 6 Then
Data1.Recordset.Edit
Data1.Recordset("count") = 0
Data1.Recordset.Update
Image2.Visible = False
Form9.Caption = " 未注册"
Text1.Visible = True
Text2.Visible = True
Text1.Locked = False
Text2.Locked = False
Text1.Text = ""
Text2.Text = ""
Command1.Enabled = True
js = 0
End If
End Sub

⌨️ 快捷键说明

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