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

📄 frm_login.frm

📁 汽修厂管理软件
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Frm_Login 
   Caption         =   "登录"
   ClientHeight    =   1995
   ClientLeft      =   5760
   ClientTop       =   4335
   ClientWidth     =   4680
   ControlBox      =   0   'False
   Icon            =   "Frm_Login.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1995
   ScaleWidth      =   4680
   Begin VB.CommandButton Cmd_Cancel 
      Caption         =   "取消"
      Height          =   375
      Left            =   2520
      TabIndex        =   5
      Top             =   1440
      Width           =   1335
   End
   Begin VB.CommandButton Cmd_LogIn 
      Caption         =   "登陆"
      Height          =   375
      Left            =   720
      TabIndex        =   4
      Top             =   1440
      Width           =   1335
   End
   Begin VB.TextBox Txt_PWD 
      Height          =   270
      IMEMode         =   3  'DISABLE
      Left            =   1560
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   825
      Width           =   1695
   End
   Begin VB.TextBox Txt_Name 
      Height          =   270
      Left            =   1560
      TabIndex        =   1
      Top             =   240
      Width           =   1695
   End
   Begin VB.Label Label2 
      Caption         =   "密码:"
      Height          =   255
      Left            =   600
      TabIndex        =   2
      Top             =   840
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "用户名:"
      Height          =   255
      Left            =   600
      TabIndex        =   0
      Top             =   240
      Width           =   735
   End
End
Attribute VB_Name = "Frm_Login"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_Cancel_Click()
Txt_Name.Text = ""
Txt_PWD.Text = ""
strOkorEsc = "取消"
Me.Hide
End Sub

Private Sub Cmd_LogIn_Click()

strOkorEsc = "确定"
 
Me.Hide
End Sub



Private Sub Form_Activate()
Txt_Name.SetFocus
End Sub

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 27 Then
   Cmd_Cancel_Click
End If
End Sub

Private Sub Form_Unload(Cancel As Integer)
Txt_Name.Text = ""
Txt_PWD.Text = ""
strOkorEsc = "取消"
Me.Hide

End Sub

Private Sub Txt_Name_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 27 Then
 Cmd_Cancel_Click
End If
If KeyCode = 13 Then Txt_PWD.SetFocus
End Sub

Private Sub Txt_PWD_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
  Cmd_LogIn_Click
  ElseIf KeyCode = 27 Then
   Cmd_Cancel_Click
End If
  

End Sub

⌨️ 快捷键说明

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