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

📄 form3.frm

📁 加密文本编辑器 VB
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form3 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "输入密码"
   ClientHeight    =   1995
   ClientLeft      =   2160
   ClientTop       =   3555
   ClientWidth     =   4935
   ControlBox      =   0   'False
   Icon            =   "Form3.frx":0000
   LinkTopic       =   "Form3"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1995
   ScaleWidth      =   4935
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.TextBox txtreenter 
      Enabled         =   0   'False
      Height          =   350
      IMEMode         =   3  'DISABLE
      Left            =   240
      PasswordChar    =   "*"
      TabIndex        =   9
      Top             =   840
      Width           =   2775
   End
   Begin VB.CheckBox CheKong 
      Caption         =   "不加(解)密空格"
      Height          =   375
      Left            =   3120
      TabIndex        =   8
      Top             =   600
      Width           =   1575
   End
   Begin VB.CheckBox CheEnter 
      Caption         =   "不加(解)密换行符"
      Height          =   375
      Left            =   3120
      TabIndex        =   7
      Top             =   240
      Width           =   1815
   End
   Begin VB.TextBox txtto 
      Height          =   270
      Left            =   2520
      TabIndex        =   5
      Top             =   1200
      Width           =   495
   End
   Begin VB.TextBox txtform 
      Height          =   270
      Left            =   1440
      TabIndex        =   4
      Top             =   1200
      Width           =   495
   End
   Begin VB.CommandButton ComOk 
      Caption         =   "OK"
      Default         =   -1  'True
      Enabled         =   0   'False
      Height          =   375
      Left            =   240
      TabIndex        =   3
      Top             =   1560
      Width           =   615
   End
   Begin VB.CommandButton Comcancle 
      Caption         =   "取消"
      Height          =   375
      Left            =   2400
      TabIndex        =   2
      Top             =   1560
      Width           =   615
   End
   Begin VB.TextBox Txtpassword 
      Height          =   350
      IMEMode         =   3  'DISABLE
      Left            =   240
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   300
      Width           =   2775
   End
   Begin VB.Label Label4 
      Caption         =   "注意:           使用此选项可能会导致加(解)密出错!"
      Height          =   675
      Left            =   3120
      TabIndex        =   11
      Top             =   1080
      Width           =   1680
   End
   Begin VB.Label Label3 
      Caption         =   "确认密码"
      Height          =   375
      Left            =   240
      TabIndex        =   10
      Top             =   650
      Width           =   1575
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "密码文字:从        到"
      Height          =   180
      Left            =   240
      TabIndex        =   6
      Top             =   1320
      Width           =   1980
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "请输入 4-24 位密码"
      Height          =   180
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   1620
   End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Comcancle_Click()
code = 0
Unload Me
End Sub

Private Sub ComOk_Click()
If Len(Txtpassword.Text) < 4 Or Len(Txtpassword.Text) > 24 Then
MsgBox "请输入 4-24 位密码", , "输入出错"
Exit Sub
End If
Select Case IntType
Case 1
intForm = txtform.Text
intTo = txtto.Text
getseed (Txtpassword.Text)
mi
Case 2
intForm = 0
intTo = Len(Form1.Text1.Text)
getseed (Txtpassword.Text)
mi
SaveFile
Case 3
intForm = 0
intTo = Len(Form1.Text1.Text) - 3
getseed (Txtpassword.Text)
mi
End Select
Unload Me
End Sub

Private Sub Form_Load()
If pass.BEenter = True Then Form3.CheEnter.Value = 1 Else Me.CheEnter.Value = 0
If pass.BEenter = True Then Form3.CheKong.Value = 1 Else Me.CheKong.Value = 0

txtform.Text = Form1.Text1.SelStart
txtto.Text = Form1.Text1.SelStart + Form1.Text1.SelLength
If IntType <> 1 Then
Label2.Enabled = False
txtform.Enabled = False
txtto.Enabled = False
txtform.Text = 0
txtto.Text = Len(Form1.Text1.Text)

End If
End Sub

Private Sub Form_Unload(Cancel As Integer)
If Form3.CheEnter.Value = 1 Then pass.BEenter = True Else pass.BEenter = False
If Form3.CheKong.Value = 1 Then pass.BEenter = True Else pass.BKong = False

End Sub

Private Sub Txtpassword_Change()
If Txtpassword <> "" Then txtreenter.Enabled = True Else txtreenter.Enabled = False
End Sub

Private Sub Txtpassword_GotFocus()
txtreenter.Enabled = False
txtreenter.Text = ""
End Sub

Private Sub txtreenter_Change()
If txtreenter.Text = Txtpassword.Text Then ComOk.Enabled = True Else ComOk.Enabled = False
End Sub

⌨️ 快捷键说明

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