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

📄 frmlogin.frm

📁 自动售药系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmLogin 
   BorderStyle     =   0  'None
   Caption         =   "登录"
   ClientHeight    =   4350
   ClientLeft      =   2790
   ClientTop       =   3150
   ClientWidth     =   3600
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2570.124
   ScaleMode       =   0  'User
   ScaleWidth      =   3380.205
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.PictureBox Picture1 
      BackColor       =   &H0080C0FF&
      BorderStyle     =   0  'None
      Height          =   4455
      Left            =   0
      Picture         =   "frmLogin.frx":0000
      ScaleHeight     =   4455
      ScaleWidth      =   3615
      TabIndex        =   0
      Top             =   0
      Width           =   3615
      Begin VB.TextBox txtPwd 
         Appearance      =   0  'Flat
         BackColor       =   &H0080C0FF&
         BorderStyle     =   0  'None
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   15.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         IMEMode         =   3  'DISABLE
         Left            =   240
         MaxLength       =   8
         PasswordChar    =   "*"
         TabIndex        =   1
         Top             =   360
         Width           =   1695
      End
      Begin VB.Label Label13 
         BackStyle       =   0  'Transparent
         Height          =   615
         Left            =   600
         TabIndex        =   14
         Top             =   3600
         Width           =   615
      End
      Begin VB.Label Label12 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         BackStyle       =   0  'Transparent
         ForeColor       =   &H80000008&
         Height          =   495
         Left            =   2160
         TabIndex        =   13
         Top             =   360
         Width           =   1335
      End
      Begin VB.Label Label11 
         BackStyle       =   0  'Transparent
         Height          =   495
         Left            =   1560
         TabIndex        =   12
         Top             =   3720
         Width           =   1695
      End
      Begin VB.Label Label10 
         BackStyle       =   0  'Transparent
         Height          =   615
         Left            =   480
         TabIndex        =   11
         Top             =   2760
         Width           =   735
      End
      Begin VB.Label Label9 
         BackStyle       =   0  'Transparent
         Height          =   615
         Left            =   2400
         TabIndex        =   10
         Top             =   2760
         Width           =   735
      End
      Begin VB.Label Label8 
         BackStyle       =   0  'Transparent
         Height          =   615
         Left            =   1440
         TabIndex        =   9
         Top             =   2760
         Width           =   735
      End
      Begin VB.Label Label7 
         BackStyle       =   0  'Transparent
         Height          =   615
         Left            =   3000
         TabIndex        =   8
         Top             =   3120
         Width           =   735
      End
      Begin VB.Label Label6 
         BackStyle       =   0  'Transparent
         Height          =   615
         Left            =   2400
         TabIndex        =   7
         Top             =   1920
         Width           =   735
      End
      Begin VB.Label Label5 
         BackStyle       =   0  'Transparent
         Height          =   615
         Left            =   1440
         TabIndex        =   6
         Top             =   1920
         Width           =   735
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         Height          =   615
         Left            =   480
         TabIndex        =   5
         Top             =   1920
         Width           =   735
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Height          =   615
         Left            =   2400
         TabIndex        =   4
         Top             =   1080
         Width           =   735
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Height          =   615
         Left            =   1440
         TabIndex        =   3
         Top             =   1080
         Width           =   735
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Height          =   615
         Left            =   480
         TabIndex        =   2
         Top             =   1080
         Width           =   735
      End
   End
End
Attribute VB_Name = "frmLogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit




Private Sub Form_Load()
txtPwd.Text = ""
End Sub

Private Sub ImageButton1_Click()

End Sub

Private Sub ImageButton2_Click()

End Sub

Private Sub Label1_Click()
txtPwd.Text = txtPwd & "7"
End Sub



Private Sub Label11_Click()
'MsgBox txtPwd.Text
Dim rs As New ADODB.Recordset
 rs.Source = "select * from Admpass where admpass='" & txtPwd.Text & "'"
 rs.ActiveConnection = Constr
 rs.Open
 If Not rs.EOF Then
 frmMsystem.Show (1)
 Me.Hide
 End If
End Sub

Private Sub Label12_Click()
If Len(txtPwd.Text) > 0 Then
txtPwd.Text = Left(txtPwd.Text, Len(txtPwd.Text) - 1)
End If
End Sub

Private Sub Label13_Click()
txtPwd.Text = txtPwd & "0"
End Sub

Private Sub Label2_Click()
txtPwd.Text = txtPwd & "8"
End Sub

Private Sub Label3_Click()
txtPwd.Text = txtPwd & "9"
End Sub

Private Sub Label4_Click()
txtPwd.Text = txtPwd & "4"
End Sub
Private Sub Label5_Click()
txtPwd.Text = txtPwd & "5"
End Sub

Private Sub Label6_Click()
txtPwd.Text = txtPwd & "6"
End Sub

Private Sub Label7_Click()
txtPwd.Text = txtPwd & "1"
End Sub

Private Sub Label8_Click()
txtPwd.Text = txtPwd & "2"
End Sub

Private Sub Label9_Click()
txtPwd.Text = txtPwd & "3"
End Sub

Private Sub txtPwd_DblClick()
Unload Me
End Sub

⌨️ 快捷键说明

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