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

📄 form1.frm

📁 可以位你的文件加密活解密
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   7815
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   9360
   LinkTopic       =   "Form1"
   ScaleHeight     =   7815
   ScaleWidth      =   9360
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame4 
      Caption         =   "计算器"
      Height          =   495
      Left            =   1440
      TabIndex        =   21
      Top             =   7080
      Width           =   5295
      Begin VB.CommandButton Command7 
         Caption         =   "计算"
         Height          =   300
         Left            =   4200
         TabIndex        =   26
         Top             =   120
         Width           =   735
      End
      Begin VB.TextBox Txt2 
         Height          =   270
         Left            =   2160
         TabIndex        =   25
         Text            =   "Text2"
         Top             =   240
         Width           =   495
      End
      Begin VB.TextBox Txt1 
         Height          =   270
         Left            =   1080
         TabIndex        =   22
         Text            =   "Text1"
         Top             =   240
         Width           =   495
      End
      Begin VB.Label LbC 
         Caption         =   "="
         Height          =   255
         Left            =   2760
         TabIndex        =   24
         Top             =   240
         Width           =   375
      End
      Begin VB.Label Label4 
         Caption         =   "Xor"
         Height          =   255
         Left            =   1680
         TabIndex        =   23
         Top             =   240
         Width           =   615
      End
   End
   Begin MSComDlg.CommonDialog CD1 
      Left            =   2640
      Top             =   360
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.Frame Frame3 
      Caption         =   "目标文件"
      Height          =   6135
      Left            =   4680
      TabIndex        =   2
      Top             =   720
      Width           =   4575
      Begin VB.CommandButton Command6 
         Caption         =   "加密"
         Height          =   255
         Left            =   3240
         TabIndex        =   20
         Top             =   600
         Width           =   975
      End
      Begin VB.TextBox TxtST 
         Height          =   4935
         Left            =   120
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   19
         Top             =   960
         Width           =   4215
      End
      Begin VB.CommandButton Command4 
         Caption         =   "显示"
         Height          =   375
         Left            =   3840
         TabIndex        =   13
         Top             =   240
         Width           =   495
      End
      Begin VB.CommandButton Command3 
         Caption         =   "浏览…"
         Height          =   375
         Left            =   3120
         TabIndex        =   12
         Top             =   240
         Width           =   735
      End
      Begin VB.TextBox TxtT 
         Height          =   375
         Left            =   120
         TabIndex        =   11
         Text            =   "Text5"
         Top             =   240
         Width           =   2895
      End
      Begin VB.Label Label5 
         Caption         =   "Label5"
         Height          =   135
         Left            =   120
         TabIndex        =   27
         Top             =   720
         Width           =   2895
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "源文件"
      Height          =   6135
      Left            =   120
      TabIndex        =   1
      Top             =   720
      Width           =   4455
      Begin VB.CommandButton Command2 
         Caption         =   "显示"
         Height          =   375
         Left            =   3720
         TabIndex        =   10
         Top             =   240
         Width           =   615
      End
      Begin VB.TextBox TxtSS 
         Height          =   5175
         Left            =   120
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   9
         Top             =   720
         Width           =   4215
      End
      Begin VB.CommandButton Command1 
         Caption         =   "浏览…"
         Height          =   375
         Left            =   2880
         TabIndex        =   8
         Top             =   240
         Width           =   855
      End
      Begin VB.TextBox TxtS 
         Height          =   375
         Left            =   120
         TabIndex        =   7
         Text            =   "Text3"
         Top             =   240
         Width           =   2655
      End
   End
   Begin VB.Frame Frame1 
      Height          =   615
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   9015
      Begin VB.CommandButton Command5 
         Caption         =   "浏览"
         Height          =   255
         Left            =   8160
         TabIndex        =   18
         Top             =   240
         Width           =   735
      End
      Begin VB.OptionButton Option2 
         Caption         =   "文件"
         Height          =   255
         Left            =   5160
         TabIndex        =   16
         Top             =   240
         Width           =   735
      End
      Begin VB.TextBox TxtMy 
         Height          =   270
         Left            =   5880
         TabIndex        =   15
         Text            =   "Text6"
         Top             =   240
         Width           =   2175
      End
      Begin VB.OptionButton Opt1 
         Caption         =   "字节"
         Height          =   255
         Left            =   4440
         TabIndex        =   14
         Top             =   240
         Value           =   -1  'True
         Width           =   735
      End
      Begin VB.TextBox TxtEnd 
         Height          =   270
         Left            =   1920
         TabIndex        =   6
         Text            =   "20"
         Top             =   240
         Width           =   495
      End
      Begin VB.TextBox TxtBegin 
         Height          =   270
         Left            =   1080
         TabIndex        =   4
         Text            =   "1"
         Top             =   240
         Width           =   495
      End
      Begin VB.Label Label3 
         Caption         =   "加秘密钥"
         Height          =   255
         Left            =   3480
         TabIndex        =   17
         Top             =   240
         Width           =   735
      End
      Begin VB.Label Label2 
         Caption         =   "至"
         Height          =   255
         Left            =   1680
         TabIndex        =   5
         Top             =   240
         Width           =   255
      End
      Begin VB.Label Label1 
         Caption         =   "文件开始"
         Height          =   255
         Left            =   240
         TabIndex        =   3
         Top             =   240
         Width           =   735
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
CD1.ShowOpen
TxtS.Text = CD1.FileName
End Sub

Private Sub Command2_Click()
MyShow Trim(TxtS.Text), Val(TxtBegin.Text), Val(TxtEnd.Text), TxtSS
End Sub

Private Sub Command3_Click()
CD1.ShowOpen
TxtT.Text = CD1.FileName
End Sub

Private Sub Command4_Click()
MyShow TxtT.Text, Val(TxtBegin.Text), Val(TxtEnd.Text), TxtST
End Sub

Private Sub Command5_Click()
CD1.ShowOpen
TxtMy.Text = CD1.FileName
End Sub

Private Sub Command6_Click()
If Opt1.Value Then
   JiaMi Trim(TxtS.Text), Val(TxtMy.Text), Trim(TxtT.Text)
   Label5.Caption = "OK" & TxtT.Text
Else
   JiaM Trim(TxtS.Text), Trim(TxtMy.Text), Trim(TxtT.Text)
   Label5.Caption = "OOOOOOOOOk"
End If
End Sub

Private Sub Command7_Click()
LbC.Caption = Val(Txt1) Xor Val(Txt2)
End Sub

⌨️ 快捷键说明

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