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

📄 窗体密码.frm

📁 这是朋友一起做的 这是一个关于学生成绩管理系统的VS程序 谢谢大家提意见
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form1 
   BackColor       =   &H00FFC0C0&
   Caption         =   "Form1"
   ClientHeight    =   4725
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   5520
   LinkTopic       =   "Form1"
   ScaleHeight     =   4725
   ScaleWidth      =   5520
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   375
      Left            =   3000
      TabIndex        =   7
      Top             =   2520
      Width           =   975
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   2520
      TabIndex        =   5
      Top             =   1680
      Width           =   1575
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   2520
      TabIndex        =   4
      Top             =   840
      Width           =   1575
   End
   Begin VB.Frame Frame2 
      BackColor       =   &H00FFC0C0&
      Caption         =   "登陆"
      Height          =   2775
      Left            =   600
      TabIndex        =   3
      Top             =   360
      Width           =   4095
      Begin VB.CommandButton Command1 
         BackColor       =   &H00808080&
         Caption         =   "提交"
         Height          =   375
         Left            =   480
         TabIndex        =   6
         Top             =   2160
         Width           =   975
      End
      Begin VB.Label Label3 
         BackColor       =   &H00FFC0C0&
         Caption         =   "请输入密码"
         Height          =   375
         Left            =   480
         TabIndex        =   10
         Top             =   1440
         Width           =   975
      End
      Begin VB.Label Label2 
         BackColor       =   &H00FFC0C0&
         Caption         =   "请输入学号"
         Height          =   255
         Left            =   480
         TabIndex        =   9
         Top             =   600
         Width           =   975
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   450
      Left            =   480
      Top             =   4800
      Width           =   1575
      _ExtentX        =   2778
      _ExtentY        =   794
      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.3.51;Persist Security Info=False;Data Source=db1.mdb"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=db1.mdb"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "user"
      Caption         =   "Adodc2"
      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 Text7 
      DataField       =   "userauth"
      DataSource      =   "Adodc1"
      Height          =   360
      Left            =   2400
      TabIndex        =   2
      Top             =   4800
      Visible         =   0   'False
      Width           =   1215
   End
   Begin VB.TextBox Text6 
      DataField       =   "userpassword"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   1440
      TabIndex        =   1
      Text            =   "Text6"
      Top             =   4800
      Visible         =   0   'False
      Width           =   975
   End
   Begin VB.TextBox Text5 
      DataField       =   "studentid"
      DataSource      =   "Adodc1"
      Height          =   360
      Left            =   360
      TabIndex        =   0
      Text            =   "Text5"
      Top             =   4800
      Visible         =   0   'False
      Width           =   975
   End
   Begin VB.Label Label5 
      BackColor       =   &H00FFC0C0&
      Caption         =   "王来庆制作"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3240
      TabIndex        =   12
      Top             =   4080
      Width           =   1695
   End
   Begin VB.Label Label4 
      BackColor       =   &H00FFC0C0&
      Caption         =   "计算机科学与技术"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   15.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   600
      TabIndex        =   11
      Top             =   3360
      Width           =   3015
   End
   Begin VB.Label Label1 
      Caption         =   "Label1"
      Height          =   495
      Left            =   2160
      TabIndex        =   8
      Top             =   2160
      Width           =   1215
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()

If Text1.Text = "" Then
MsgBox "请输入学号"
Exit Sub
End If
If Text2.Text = "" Then
MsgBox "请输入密码"
Exit Sub
End If
Do
    If Adodc1.Recordset.EOF Then
    MsgBox "不存在这样的用户名和密码"
    Exit Do
    Else
    If Text1.Text = Text5.Text And Text2.Text = Text6.Text And Text7.Text = 0 Then
     Form2.Show
     Form1.Hide
     
     Exit Do
   Else
     If Text1.Text = Text5.Text And Text2.Text = Text6.Text And Text7.Text = 1 Then
    Form3.Show
    Form1.Hide
    
    Exit Do
      End If
    End If
  Adodc1.Recordset.MoveNext
  End If
  Loop
  Adodc1.Recordset.MoveFirst
  End Sub


Private Sub Command2_Click()
End
End Sub

⌨️ 快捷键说明

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