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

📄 frmlogin.frm

📁 简单库存管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmlogin 
   BackColor       =   &H80000018&
   Caption         =   "东信手机售后服务管理系统!!!"
   ClientHeight    =   2835
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   2835
   ScaleWidth      =   4680
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame1 
      BackColor       =   &H80000018&
      Height          =   1695
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   4335
      Begin VB.TextBox Text2 
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   1920
         PasswordChar    =   "*"
         TabIndex        =   2
         ToolTipText     =   "请正确输入密码"
         Top             =   960
         Width           =   1815
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   1920
         TabIndex        =   1
         ToolTipText     =   "请正确输入用户名"
         Top             =   360
         Width           =   1815
      End
      Begin VB.Label Label2 
         BackColor       =   &H80000018&
         Caption         =   "密 码:"
         Height          =   255
         Left            =   360
         TabIndex        =   4
         Top             =   1080
         Width           =   615
      End
      Begin VB.Label Label1 
         BackColor       =   &H80000018&
         Caption         =   "用户名:"
         Height          =   255
         Left            =   360
         TabIndex        =   3
         Top             =   480
         Width           =   855
      End
   End
   Begin VB.Shape Shape1 
      BorderColor     =   &H80000010&
      Height          =   615
      Left            =   2040
      Shape           =   4  'Rounded Rectangle
      Top             =   2040
      Width           =   2535
   End
   Begin VB.Image Image2 
      Height          =   330
      Left            =   3600
      Picture         =   "frmlogin.frx":0000
      ToolTipText     =   "点击此处退出系统"
      Top             =   2160
      Width           =   750
   End
   Begin VB.Image Image1 
      Height          =   330
      Left            =   2520
      Picture         =   "frmlogin.frx":0691
      ToolTipText     =   "点击此处进入系统"
      Top             =   2160
      Width           =   750
   End
End
Attribute VB_Name = "frmlogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public ci As Integer

Private Sub Form_Load()
Call zdf
frmSplash.Show
End Sub

Private Sub Form_Unload(Cancel As Integer)
frmSplash.Hide
End Sub

Private Sub Image1_Click()

On Error Resume Next
If Trim(Text1.Text) = "" Then
MsgBox "东信手机提醒你,请输入用户名", vbCritical, "东信手机售后服务系统!!!"
Text1.SetFocus
Exit Sub
Else
rs.Open "select * from user where user='" & Trim(Text1.Text) & "'"
End If
If rs.EOF And rs.BOF Then
MsgBox "东信手机提醒你,用户名不存在!!!", vbCritical, "东信手机售后服务系统!!!"
Text1.Text = ""
Text1.SetFocus
Exit Sub
End If
If IsNull(rs.Fields(2).Value) Then
If Trim(Text1.Text) = rs.Fields(1).Value Then
admin = Trim(rs.Fields(3).Value)

frmmain.Show
Me.Hide
frmSplash.Hide
Exit Sub
Else
MsgBox "东信手机提醒你,用户名不正确", vbCritical, "东信手机售后服务系统!!!"
Text1.Text = ""
Text1.SetFocus
Exit Sub
End If
End If
If Not IsNull(rs.Fields(2).Value) Then
If Trim(Text2.Text) = "" Then
MsgBox "东信手机提醒你,密码不能为空", vbCritical, "东信手机售后服务系统!!!"
Text2.SetFocus
Exit Sub
End If
If Trim(Text2.Text) = rs.Fields(2).Value Then
admin = Trim(rs.Fields(3).Value)

frmmain.Show
Me.Hide
frmSplash.Hide
Else
MsgBox "东信手机提醒你,密码不正确!!!", vbCritical, "东信手机售后服务系统!!!"
Text2.Text = ""
Text2.SetFocus

End If
End If
End Sub

Private Sub Image2_Click()
End
End Sub

⌨️ 快捷键说明

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