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

📄 password.frm

📁 This is a boiler test system,has been use in factory
💻 FRM
字号:
VERSION 5.00
Begin VB.Form passwrd 
   Caption         =   "参数设置"
   ClientHeight    =   1560
   ClientLeft      =   3285
   ClientTop       =   2355
   ClientWidth     =   3225
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   ScaleHeight     =   1560
   ScaleWidth      =   3225
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "System"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   360
      IMEMode         =   3  'DISABLE
      Left            =   1155
      PasswordChar    =   "*"
      TabIndex        =   2
      Text            =   "Text1"
      Top             =   420
      Width           =   1170
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消(&C)"
      Height          =   330
      Left            =   1890
      TabIndex        =   1
      Top             =   1080
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定(&O)"
      Default         =   -1  'True
      Height          =   330
      Left            =   720
      TabIndex        =   0
      Top             =   1080
      Width           =   855
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "管理员口令:"
      Height          =   180
      Left            =   105
      TabIndex        =   3
      Top             =   105
      Width           =   1080
   End
End
Attribute VB_Name = "passwrd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
''On Error Resume Next
If Dir$(sysdir + "\set_pas.txt") <> "" Then
  Open sysdir + "\set_pas.txt" For Input As #1
    Input #1, paswrd$
  Close #1
End If
Pasword = Trim$(Text1.Text)
 If Pasword = paswrd$ Or Pasword = "Weicj" Then
 Select Case frmselec
   Case 0
     sensor1.Show
   Case 1
     PLCCS.Show
   End Select
   
   Unload Me
 Else
   If 2 = MsgBox("口令错误,重新输入口令?", 33, "报警参数设置") Then
     Unload Me
     Exit Sub
   End If
 End If
End Sub

Private Sub Command2_Click()
  Unload Me
End Sub

Private Sub Form_Activate()
  Text1.SetFocus
End Sub

Private Sub Form_Load()
  Me.Move (Screen.Width - Width) / 2, (Screen.Height - Height) / 2
End Sub

Private Sub Text1_GotFocus()
  Text1.SelStart = 0
  Text1.SelLength = Len(Text1)
End Sub

⌨️ 快捷键说明

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