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

📄 frmlogin.frm

📁 都是基于VB所做的程序集合,值得大家作为实践的参考资料.
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmLogIn 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "登录长事务环境"
   ClientHeight    =   1200
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3240
   Icon            =   "frmLogIn.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1200
   ScaleWidth      =   3240
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取消"
      Height          =   375
      Left            =   1875
      TabIndex        =   5
      Top             =   810
      Width           =   855
   End
   Begin VB.CommandButton cmdLogin 
      Caption         =   "登录"
      Default         =   -1  'True
      Height          =   375
      Left            =   555
      TabIndex        =   4
      Top             =   810
      Width           =   855
   End
   Begin VB.TextBox txtLoginPassword 
      Height          =   285
      IMEMode         =   3  'DISABLE
      Left            =   960
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   480
      Width           =   2175
   End
   Begin VB.TextBox txtLoginUser 
      Height          =   285
      Left            =   960
      TabIndex        =   2
      Top             =   120
      Width           =   2175
   End
   Begin VB.Label Label2 
      Caption         =   "密    码:"
      Height          =   255
      Left            =   120
      TabIndex        =   1
      Top             =   480
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "用户名:"
      Height          =   255
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   735
   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 Sub

Private Sub cmdLogin_Click() '登录长事务环境
    strLoginUser = txtLoginUser
    strLoginPassword = txtLoginPassword
    objLT.User = strLoginUser
    objLT.Password = strLoginPassword
    
    If (objLT.LogIn) Then
        With frmLongTrans
            .cmdLogin.Enabled = False
            .cmdLogOut.Enabled = True
            .chkAutoCheck.Enabled = True
            
            .cmdCheckOut.Enabled = True
            .cmdCheckIn.Enabled = False
            .cmdUndo.Enabled = False
            .cmdChkRecordset.Enabled = True
            .cmdChkinRecordset.Enabled = False
            .cmdUndoRecordset.Enabled = False
            .cmdAdd.Enabled = False
            .chkEditable.Enabled = False
            .SuperMap1.Layers.DisableEdit
            .chkEditable = False
        End With
        Unload Me
    Else
        MsgBox "用户不存在或密码不对!"
        txtLoginPassword = ""
        txtLoginUser.SetFocus
        txtLoginUser.SelStart = 0
        txtLoginUser.SelLength = Len(txtLoginUser)
    End If

End Sub

⌨️ 快捷键说明

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