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

📄 frmlogin.frm

📁 学生选课系统,简单的系统,请帮帮看看学生选课
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmlogin 
   Caption         =   "Form1"
   ClientHeight    =   4095
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6360
   LinkTopic       =   "Form1"
   ScaleHeight     =   4095
   ScaleWidth      =   6360
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame2 
      Caption         =   "登陆"
      Height          =   2175
      Left            =   240
      TabIndex        =   1
      Top             =   1800
      Width           =   5895
      Begin VB.CommandButton Cmdcancel 
         Caption         =   "退出"
         Height          =   495
         Left            =   3960
         TabIndex        =   9
         Top             =   840
         Width           =   1335
      End
      Begin VB.CommandButton Cmdok 
         Caption         =   "确定"
         Height          =   495
         Left            =   3960
         TabIndex        =   8
         Top             =   240
         Width           =   1335
      End
      Begin VB.TextBox Txtpwd 
         Height          =   495
         Left            =   1560
         TabIndex        =   7
         Top             =   840
         Width           =   1335
      End
      Begin VB.TextBox Txtuser 
         Height          =   495
         Left            =   1560
         TabIndex        =   6
         Top             =   240
         Width           =   1335
      End
      Begin VB.Label Label2 
         Caption         =   "密码:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   615
         Left            =   360
         TabIndex        =   5
         Top             =   960
         Width           =   855
      End
      Begin VB.Label Label1 
         Caption         =   "用户名:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   360
         TabIndex        =   4
         Top             =   480
         Width           =   1215
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "选择身份"
      Height          =   1575
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   5895
      Begin VB.OptionButton Optusertype 
         Caption         =   "学生"
         Height          =   615
         Index           =   1
         Left            =   2520
         TabIndex        =   3
         Top             =   480
         Width           =   2175
      End
      Begin VB.OptionButton Optusertype 
         Caption         =   "教务管理人员"
         Height          =   375
         Index           =   0
         Left            =   240
         TabIndex        =   2
         Top             =   600
         Width           =   1935
      End
   End
End
Attribute VB_Name = "frmlogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub cmdcancel_Click()
Unload Me
'end

End Sub

Private Sub cmdok_Click()

Dim user As String, pwd As String
user = Trim(Txtuser.Text)
pwd = Trim(Txtpwd.Text)

Dim r As New ADODB.Recordset
'记录集对象r
 Set r = DataEnv.rssqlseek
 
 
 Dim strsql As String
 
 Select Case mnUserType
 
 End Select
 
 
 If r.State = adStateOpen Then r.Close
 frmmenu.Show
 Unload Me
 
End Sub


Private Sub Form_Load()
Optusertype(0).Value = True
End Sub

Private Sub optusertype_Click(Index As Integer)
  mnUserType = Index
  
End Sub

⌨️ 快捷键说明

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