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

📄 密码.frm

📁 小型企业进销存源代码 一款小型企业进销存源代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form 密码 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "密码"
   ClientHeight    =   1605
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4860
   Icon            =   "密码.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   MouseIcon       =   "密码.frx":27A2
   ScaleHeight     =   1605
   ScaleWidth      =   4860
   StartUpPosition =   2  '屏幕中心
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   ""
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   285
      Left            =   3360
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "用户密码"
      Top             =   120
      Visible         =   0   'False
      Width           =   1140
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   255
      Left            =   3960
      TabIndex        =   5
      Top             =   960
      Width           =   735
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   255
      Left            =   3960
      TabIndex        =   4
      Top             =   480
      Width           =   735
   End
   Begin VB.TextBox Text1 
      Height          =   270
      IMEMode         =   3  'DISABLE
      Left            =   1440
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   1080
      Width           =   1575
   End
   Begin VB.ComboBox Combo1 
      DataField       =   "用户名"
      DataSource      =   "Data1"
      Height          =   300
      Left            =   1440
      TabIndex        =   1
      Top             =   360
      Width           =   1455
   End
   Begin VB.Label Label2 
      Caption         =   "密码"
      Height          =   255
      Left            =   600
      TabIndex        =   2
      Top             =   1080
      Width           =   615
   End
   Begin VB.Label Label1 
      Caption         =   "用户名"
      Height          =   375
      Left            =   600
      TabIndex        =   0
      Top             =   360
      Width           =   735
   End
End
Attribute VB_Name = "密码"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居汉化收藏整理
'发布日期:2007/05/02
'描    述:小型企业进销存源代码
'网    站:http://www.Mndsoft.com/  (VB6源码博客)
'网    站:http://www.VbDnet.com/   (VB.NET源码博客,主要基于.NET2005)
'e-mail  :Mndsoft@163.com
'e-mail  :Mndsoft@126.com
'OICQ    :88382850
'          如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Public OK As Boolean
Private Sub Command1_Click()
If Trim(Text1.Text) = Trim(w) Then
        OK = True
        Unload Me
Unload 封面
主窗体.Show


    Else
        MsgBox "密码错误,再试一次!", , "登录"
       Text1.SetFocus
        Text1.SelStart = 0
        Text1.SelLength = Len(Text1.Text)
    End If

End Sub

Private Sub Command2_Click()
Unload Me
Unload 封面
Unload 主窗体
End Sub

Private Sub Form_Load()
Dim db As Database
sdbname = App.Path + "\数据\用户97.mdb"
Set db = OpenDatabase(sdbname)
Set RS = db.OpenRecordset("用户密码")
For i = 1 To RS.RecordCount
Combo1.AddItem RS("用户名")
RS.MoveNext
Next i
End Sub

Private Sub Form_Unload(Cancel As Integer)
Unload 封面
Unload 主窗体
End Sub

⌨️ 快捷键说明

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