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

📄 login.frm

📁 学生学分管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form login 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "登陆"
   ClientHeight    =   2115
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5265
   Icon            =   "login.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2115
   ScaleWidth      =   5265
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.PictureBox Picture1 
      BackColor       =   &H00FFE09E&
      Height          =   2085
      Left            =   0
      Picture         =   "login.frx":030A
      ScaleHeight     =   2025
      ScaleWidth      =   1875
      TabIndex        =   6
      TabStop         =   0   'False
      Top             =   0
      Width           =   1935
      Begin VB.Image Image1 
         Height          =   720
         Left            =   240
         Picture         =   "login.frx":3A36E
         Stretch         =   -1  'True
         Top             =   120
         Width           =   720
      End
   End
   Begin VB.CommandButton Command4 
      Cancel          =   -1  'True
      Caption         =   "取  消(&C)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3840
      TabIndex        =   5
      Top             =   1680
      Width           =   1335
   End
   Begin VB.CommandButton Command2 
      Caption         =   "确  定(&Y)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2400
      TabIndex        =   4
      Top             =   1680
      Width           =   1335
   End
   Begin VB.TextBox Text2 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   345
      IMEMode         =   3  'DISABLE
      Left            =   2160
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   1200
      Width           =   3015
   End
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   315
      Left            =   2160
      TabIndex        =   0
      Top             =   360
      Width           =   3015
   End
   Begin VB.Label Label8 
      BackStyle       =   0  'Transparent
      Caption         =   "密码:(&P)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   255
      Left            =   2040
      TabIndex        =   3
      Top             =   960
      Width           =   2295
   End
   Begin VB.Label Label7 
      BackStyle       =   0  'Transparent
      Caption         =   "用户名:(&N)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   255
      Left            =   2040
      TabIndex        =   2
      Top             =   120
      Width           =   2295
   End
End
Attribute VB_Name = "login"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'----------------------------------
'  www.BeeShip.com
'  PianoPan
'  2001.10.20
'  PianoPan@BeeShip.com
'  禁止用于商业用途
'----------------------------------
Public yesno As Boolean

Private Sub Command2_Click()
    Dim ff As New ADODB.Connection
    ff.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.path & "\fdsw1.mmm;Jet OLEDB:Database Password=pianopan412424;Persist Security Info=False"
    Dim kk As New ADODB.Recordset
    kk.Open "select * from [user] where [uname]='" & Text1.Text & "'", ff, 3, 2

    If kk.RecordCount = 0 Then
        MsgBox "用户名或密码输入错误" & Chr(13) & Chr(10) & "请您验证后重新输入", vbOKOnly Or vbInformation, "提示"
        Text1.SetFocus
        Exit Sub
    End If
    If Text2.Text <> kk.Fields(2) Then
        MsgBox "用户名或密码输入错误" & Chr(13) & Chr(10) & "请您验证后重新输入", vbOKOnly Or vbInformation, "提示"
        Text1.SetFocus
        Exit Sub
    End If
    For i = 1 To 14
        userfun(i) = kk.Fields(2 + i)
    Next
    kk.Close
    yesno = True
    Unload Me
    main.Show
    
End Sub

Private Sub Command4_Click()
    Unload Me
    End
End Sub

Private Sub Form_Load()
    yesno = False
        For i = 1 To 20
         userfun(i) = True
    Next
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        KeyAscii = 0
        Text2.SetFocus
    End If
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        KeyAscii = 0
        Call Command2_Click
    End If
End Sub

⌨️ 快捷键说明

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