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

📄 login.frm

📁 一个企业进销存的系统 用ASP.NET作成 大家一起学习
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Login 
   BackColor       =   &H80000013&
   Caption         =   "登录"
   ClientHeight    =   3150
   ClientLeft      =   60
   ClientTop       =   465
   ClientWidth     =   5670
   FillColor       =   &H00C0FFFF&
   ForeColor       =   &H80000013&
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   3150
   ScaleWidth      =   5670
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Cancel          =   -1  'True
      Caption         =   "取消"
      Height          =   495
      Left            =   2880
      TabIndex        =   6
      Top             =   2280
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Appearance      =   0  'Flat
      BackColor       =   &H80000014&
      Caption         =   "登录"
      Height          =   495
      Left            =   1080
      MaskColor       =   &H00FFC0C0&
      TabIndex        =   5
      Top             =   2280
      Width           =   1215
   End
   Begin VB.TextBox Text2 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   2160
      PasswordChar    =   "*"
      TabIndex        =   4
      Text            =   "123"
      Top             =   1440
      Width           =   1935
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   2160
      TabIndex        =   3
      Text            =   "cai"
      Top             =   840
      Width           =   1935
   End
   Begin VB.Label Label3 
      BackColor       =   &H80000013&
      Caption         =   "密 码:"
      Height          =   375
      Left            =   1080
      TabIndex        =   2
      Top             =   1440
      Width           =   855
   End
   Begin VB.Label Label2 
      BackColor       =   &H80000013&
      Caption         =   "用户名:"
      Height          =   375
      Left            =   1080
      TabIndex        =   1
      Top             =   840
      Width           =   855
   End
   Begin VB.Label Label1 
      BackColor       =   &H80000013&
      Caption         =   "工业企业进销存系统"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000D&
      Height          =   255
      Left            =   1560
      TabIndex        =   0
      Top             =   240
      Width           =   2295
   End
End
Attribute VB_Name = "Login"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim mrc As ADODB.Recordset
Dim txtSQL As String
Dim msgText As String
If Trim(Text1 & " ") <> "" Then
txtSQL = "select * from g_user where uid='" & Trim(Text1 & " ") & "'"
Set mrc = ExecuteSQL(txtSQL, msgText)
If mrc.EOF = True Then
MsgBox "没有这个用户", vbOKOnly + vbExclamation, "登录"
Text1.SetFocus
Else
If Trim(Text2 & " ") = Trim(mrc!pwwd) Then
UserName = Text1.Text
Frm.Show
Me.Hide
Else
MsgBox "密码错误", vbOKOnly + vbExclamation, "登录"
Text2.SetFocus
Text2.SelStart = 0
Text2.SelLength = Len(Text2.Text)
End If
End If
Else
MsgBox "没有这个用户", vbOKOnly + vbExclamation, "登录"
Text1.SetFocus
End If
End Sub

Private Sub Command2_Click()
Unload Me
Unload Frm
End Sub

⌨️ 快捷键说明

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