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

📄 form2.frm

📁 很简单的小程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form login 
   Caption         =   "Form2"
   ClientHeight    =   2805
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form2"
   ScaleHeight     =   2805
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text1 
      Height          =   495
      Index           =   0
      Left            =   1560
      TabIndex        =   6
      Top             =   240
      Width           =   1815
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   495
      Left            =   2760
      TabIndex        =   4
      Top             =   1680
      Width           =   1215
   End
   Begin VB.CommandButton cmd 
      Caption         =   "确定"
      Height          =   495
      Left            =   720
      TabIndex        =   3
      Top             =   1680
      Width           =   1335
   End
   Begin VB.TextBox Text1 
      Height          =   495
      Index           =   1
      Left            =   1560
      TabIndex        =   2
      Top             =   960
      Width           =   1815
   End
   Begin VB.Label Label3 
      Caption         =   "管理员:admin 密码:admin"
      Height          =   375
      Left            =   960
      TabIndex        =   5
      Top             =   2280
      Width           =   3135
   End
   Begin VB.Label Label2 
      Caption         =   "密码"
      Height          =   495
      Left            =   840
      TabIndex        =   1
      Top             =   1080
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "用户"
      Height          =   495
      Left            =   840
      TabIndex        =   0
      Top             =   360
      Width           =   975
   End
End
Attribute VB_Name = "login"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub cmd_Click()
'Adodc1.RecordSource = "select * from empoyee where ygbh=' " & Text1(0).Text & " ' "
'  If Adodc1.Recordset.RecordCount = 0 Then

    If Text1(0).Text = "admin" Then
        If Text1(1).Text = "admin" Then
            Dim frm As New form1
            frm.Show
           
        End If
    Else
        Text1(0).Text = ""
        Text1(1).Text = ""
        MsgBox "没有该用户"
 
End If
End Sub

Private Sub Command2_Click()
End
End Sub

⌨️ 快捷键说明

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