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

📄 frmlogin.frm

📁 应收款管理,管理收款项目和其他!
💻 FRM
字号:
VERSION 5.00
Object = "{4406B9AC-521E-476B-AF25-3D2C36110576}#3.0#0"; "CommandSCE.ocx"
Begin VB.Form frmLogin 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "登录"
   ClientHeight    =   1605
   ClientLeft      =   2835
   ClientTop       =   3480
   ClientWidth     =   4110
   ForeColor       =   &H80000004&
   Icon            =   "frmLogin.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "frmLogin.frx":030A
   ScaleHeight     =   948.287
   ScaleMode       =   0  'User
   ScaleWidth      =   3859.067
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin CSCommandSCE.CommandSCE CommandSCE2 
      Height          =   375
      Left            =   2280
      TabIndex        =   5
      Top             =   1080
      Width           =   975
      _ExtentX        =   1720
      _ExtentY        =   661
      IconAlign       =   0
      Icon            =   "frmLogin.frx":38478
      Caption         =   "取消"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin CSCommandSCE.CommandSCE CommandSCE1 
      Height          =   375
      Left            =   600
      TabIndex        =   4
      Top             =   1080
      Width           =   975
      _ExtentX        =   1720
      _ExtentY        =   661
      IconAlign       =   0
      Icon            =   "frmLogin.frx":38494
      Caption         =   "确定"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.TextBox text1 
      Height          =   345
      Left            =   1080
      TabIndex        =   0
      Top             =   120
      Width           =   2325
   End
   Begin VB.TextBox text2 
      Height          =   345
      IMEMode         =   3  'DISABLE
      Left            =   1080
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   525
      Width           =   2325
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "密码"
      ForeColor       =   &H80000004&
      Height          =   180
      Index           =   1
      Left            =   240
      TabIndex        =   3
      Top             =   600
      Width           =   360
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "用户名"
      ForeColor       =   &H80000004&
      Height          =   180
      Index           =   0
      Left            =   240
      TabIndex        =   2
      Top             =   240
      Width           =   540
   End
End
Attribute VB_Name = "frmLogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Public LoginSucceeded As Boolean

Private Sub CommandSCE1_Click()
Dim sqltxt As String
Dim msgtxt As String
Dim mrc As ADODB.Recordset
sqltxt = "select * from yh where yh='" & text1.Text & "' and mm='" & text2.Text & "'"
Set mrc = ExecuteSQL(sqltxt, msgtxt)
If mrc.RecordCount < 1 Then
MsgBox "用户名或密码输入不正确!", vbOKOnly + vbExclamation, "登陆"
Exit Sub
Else
Main.Show
Me.Hide
End If
End Sub

Private Sub CommandSCE2_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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