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

📄 form2.frm

📁 一个利用VB + ACCESS数据库实现的人事管理系统 具有简单的添加
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form2 
   BackColor       =   &H00CFCFCF&
   BorderStyle     =   0  'None
   Caption         =   "Form2"
   ClientHeight    =   1035
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   3495
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1035
   ScaleWidth      =   3495
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox Text2 
      Height          =   270
      Left            =   120
      TabIndex        =   4
      Text            =   "Text2"
      Top             =   6000
      Width           =   735
   End
   Begin VB.CommandButton Command2 
      BackColor       =   &H00CFCFCF&
      Caption         =   "退出"
      Height          =   255
      Left            =   2280
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   660
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      BackColor       =   &H00CFCFCF&
      Caption         =   "确定"
      Height          =   255
      Left            =   480
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   660
      Width           =   855
   End
   Begin VB.TextBox Text1 
      Height          =   270
      IMEMode         =   3  'DISABLE
      Left            =   1800
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   200
      Width           =   1455
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "请输入管理员密码:"
      Height          =   255
      Left            =   120
      TabIndex        =   0
      Top             =   220
      Width           =   1695
   End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
If Text1.Text <> Text2.Text Then
   MsgBox "   管理密码错误,以只读方式打开"
   Form2.Hide
   frmmain.Show
   frmmain.cmdadd.Enabled = False
   frmmain.Command6.Enabled = False
   frmmain.cmddelete.Enabled = False
   frmmain.cmdupdate.Enabled = False
   frmmain.Label6.Caption = "您输入的密码错误!只能进行浏览"
Else
   Form2.Hide
   frmmain.Show
   frmmain.Label6.Caption = "您是以管理员身份进入,无权限限制"
End If
End Sub

Private Sub Command2_Click()
End
End Sub

Private Sub Form_Load()
Form1.Show
Form1.Hide
Text2.Text = Form1.Text11.Text
End Sub

⌨️ 快捷键说明

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