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

📄 exitpass.frm

📁 一个VB编写的校园即时广播系统,具有简单的定时广播性能
💻 FRM
字号:
VERSION 5.00
Begin VB.Form ExitP 
   Caption         =   "设置退出密码"
   ClientHeight    =   2940
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4305
   Icon            =   "Exitpass.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   2940
   ScaleWidth      =   4305
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   345
      Left            =   2370
      TabIndex        =   8
      Top             =   2610
      Width           =   1065
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确认"
      Height          =   345
      Left            =   600
      TabIndex        =   7
      Top             =   2610
      Width           =   1065
   End
   Begin VB.Frame Frame1 
      Caption         =   "修改退出密码"
      Height          =   2505
      Left            =   60
      TabIndex        =   0
      Top             =   60
      Width           =   4095
      Begin VB.TextBox T4 
         Height          =   315
         IMEMode         =   3  'DISABLE
         Left            =   1710
         PasswordChar    =   "*"
         TabIndex        =   10
         Top             =   1140
         Visible         =   0   'False
         Width           =   1455
      End
      Begin VB.TextBox T3 
         Height          =   345
         IMEMode         =   3  'DISABLE
         Left            =   1530
         MaxLength       =   6
         PasswordChar    =   "$"
         TabIndex        =   6
         Top             =   1470
         Width           =   1215
      End
      Begin VB.TextBox T2 
         Height          =   345
         IMEMode         =   3  'DISABLE
         Left            =   1530
         MaxLength       =   6
         PasswordChar    =   "0"
         TabIndex        =   5
         Top             =   960
         Width           =   1215
      End
      Begin VB.TextBox T1 
         Height          =   345
         IMEMode         =   3  'DISABLE
         Left            =   1530
         MaxLength       =   6
         PasswordChar    =   "*"
         TabIndex        =   2
         Top             =   360
         Width           =   1215
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "输入退出密码"
         Height          =   180
         Index           =   3
         Left            =   540
         TabIndex        =   9
         Top             =   1200
         Visible         =   0   'False
         Width           =   1080
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "输入新密码"
         Height          =   180
         Index           =   1
         Left            =   540
         TabIndex        =   4
         Top             =   990
         Width           =   900
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "再次输入密码"
         Height          =   180
         Index           =   2
         Left            =   360
         TabIndex        =   3
         Top             =   1530
         Width           =   1080
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "输入旧密码"
         Height          =   180
         Index           =   0
         Left            =   540
         TabIndex        =   1
         Top             =   420
         Width           =   900
      End
   End
End
Attribute VB_Name = "ExitP"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
If T2.Text <> T3.Text Then MsgBox "你输入的密码不一致" & Chr(13) & Chr(10) & "请重输", , "重新输入密码": T2.SetFocus: Exit Sub
Call savestring(HKEY_LOCAL_MACHINE, "software\New Sun\Net Call Server", "ExitPW", CStr(ExitPassWord))
End Sub


Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
If Server.Ifexit = True Then
Dim a As Integer
For a = 0 To 2
Label1(a).Visible = False
Next
T1.Visible = False
T2.Visible = False
T3.Visible = False
T4.Visible = True
Label1(3).Visible = True
End Sub

Private Sub Label1_Click(Index As Integer)

End Sub

Private Sub T1_Change()
If Len(T1.Text) = 6 Then T2.SetFocus
End Sub

Private Sub T1_LostFocus()
Dim d As String
d = getstring(HKEY_LOCAL_MACHINE, "Software\New Sun\Net Call Server", "ExitPW")
If T1.Text <> d Then T1.SetFocus
End Sub

Private Sub T2_Change()
If Len(T2.Text) = 6 Then T3.SetFocus
End Sub

⌨️ 快捷键说明

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