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

📄 用户注册.frm

📁 这是一个基于VB开发的程序,实现的是对仪器的查找和定期检修,并对检修的设备进行相关处理
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form5 
   BorderStyle     =   0  'None
   Caption         =   "用户注册"
   ClientHeight    =   3825
   ClientLeft      =   4755
   ClientTop       =   4200
   ClientWidth     =   5685
   LinkTopic       =   "Form5"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3825
   ScaleWidth      =   5685
   ShowInTaskbar   =   0   'False
   Begin VB.CommandButton Command1 
      BackColor       =   &H80000013&
      Caption         =   "确认"
      Height          =   375
      Left            =   1200
      TabIndex        =   11
      Top             =   2880
      Width           =   855
   End
   Begin VB.CommandButton Command2 
      Caption         =   "重置"
      Height          =   375
      Left            =   2340
      Style           =   1  'Graphical
      TabIndex        =   10
      Top             =   2880
      Width           =   855
   End
   Begin VB.CommandButton Command3 
      Caption         =   "取消"
      Height          =   375
      Left            =   3480
      Style           =   1  'Graphical
      TabIndex        =   9
      Top             =   2880
      Width           =   855
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   2040
      TabIndex        =   2
      Top             =   1080
      Width           =   1815
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   1680
      Top             =   3960
      Visible         =   0   'False
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\wangyufei\VB编程\050305\登陆.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\wangyufei\VB编程\050305\登陆.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "表1"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.TextBox Text3 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   2040
      PasswordChar    =   "*"
      TabIndex        =   5
      Top             =   2280
      Width           =   1815
   End
   Begin VB.TextBox Text2 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   2040
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   1680
      Width           =   1815
   End
   Begin VB.TextBox Text4 
      DataField       =   "usernum"
      DataSource      =   "Adodc1"
      Height          =   270
      Left            =   5760
      TabIndex        =   6
      Top             =   600
      Width           =   615
   End
   Begin VB.Label lblLabels 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "用户注册"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   15.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000D&
      Height          =   315
      Index           =   3
      Left            =   2160
      TabIndex        =   8
      Top             =   120
      Width           =   1320
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "不能少于4位"
      ForeColor       =   &H000000FF&
      Height          =   180
      Left            =   3960
      TabIndex        =   7
      Top             =   1680
      Width           =   990
   End
   Begin VB.Label lblLabels 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "密码确认:"
      ForeColor       =   &H8000000D&
      Height          =   180
      Index           =   2
      Left            =   720
      TabIndex        =   4
      Top             =   2400
      Width           =   810
   End
   Begin VB.Label lblLabels 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "密码:"
      ForeColor       =   &H8000000D&
      Height          =   180
      Index           =   1
      Left            =   960
      TabIndex        =   1
      Top             =   1800
      Width           =   450
   End
   Begin VB.Label lblLabels 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "用户名称:"
      ForeColor       =   &H8000000D&
      Height          =   180
      Index           =   0
      Left            =   720
      TabIndex        =   0
      Top             =   1320
      Width           =   810
   End
   Begin VB.Image Image2 
      Height          =   3840
      Left            =   0
      Picture         =   "用户注册.frx":0000
      Top             =   0
      Width           =   5700
   End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim tt As Integer
Private Sub Command1_Click()
tt = 0
Adodc1.Recordset.MoveFirst
Do While Not Adodc1.Recordset.EOF
If Adodc1.Recordset.Fields("usernum") = Text1.Text Then
MsgBox " 此用户名已存在!", vbCritical, "失败"
t = t + 1
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
End If
Adodc1.Recordset.MoveNext
Loop
If Text2.Text <> Text3.Text Then
MsgBox "  密码不一致!", vbCritical, "失败"
Text2.Text = ""
Text3.Text = ""
Else
If Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Then
MsgBox "  用户名或密码不能为空!", vbCritical, "失败"
Else
If Len(Text2.Text) < 4 Then
MsgBox "  密码为数不能少于4位!", vbCritical, "失败"
Text2.Text = ""
Text3.Text = ""
Else
If t = 0 Then
Adodc1.Recordset.AddNew
Adodc1.Recordset.Fields("usernum") = Text1.Text
Adodc1.Recordset.Fields("password") = Text2.Text
Adodc1.Recordset.update
Adodc1.Refresh
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
MsgBox " 成功!"
End If
End If
End If
End If
'End If
End Sub

Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
End Sub

Private Sub Command3_Click()
main.Enabled = True
Unload Me
End Sub



Private Sub Form_Load()
main.Enabled = False
End Sub

⌨️ 快捷键说明

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