📄 form1.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1
BackColor = &H00E0E0E0&
ClientHeight = 5115
ClientLeft = 60
ClientTop = 345
ClientWidth = 6675
FillColor = &H00C0C0C0&
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "Form1.frx":0000
LinkTopic = "Form1"
ScaleHeight = 5115
ScaleWidth = 6675
StartUpPosition = 2 '屏幕中心
Begin MSComDlg.CommonDialog CommonDialog1
Left = 1800
Top = 4800
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.TextBox Text2
Height = 3735
Left = 4080
TabIndex = 6
Top = 720
Width = 2175
End
Begin VB.TextBox Text1
Height = 3735
Left = 1920
TabIndex = 5
Top = 720
Width = 1935
End
Begin VB.CommandButton Command1
Caption = "加密并存盘"
Height = 375
Left = 3720
TabIndex = 4
Top = 240
Width = 1935
End
Begin VB.ComboBox Combo1
Height = 360
ItemData = "Form1.frx":000C
Left = 120
List = "Form1.frx":000E
TabIndex = 3
Top = 4680
Width = 1575
End
Begin VB.FileListBox File1
Height = 2010
Left = 120
TabIndex = 2
Top = 2520
Width = 1455
End
Begin VB.DirListBox Dir1
Height = 1710
Left = 120
TabIndex = 1
Top = 720
Width = 1455
End
Begin VB.DriveListBox Drive1
Height = 360
Left = 120
TabIndex = 0
Top = 240
Width = 1095
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'CODE Manger By BcodeXRose
'##################################################################
'## 过程名称:Combo1_Click
'## 参数: 无
'##################################################################
Private Sub Combo1_Click()
Select Case Combo1.Text
Case "*.*"
File1.Pattern = "*.*"
Case "*.exe"
File1.Pattern = "*.exe"
Case "*.bmp"
File1.Pattern = "*.bmp"
End Select
End Sub
Private Sub Command1_Click()
CommonDialog1.Action = 2
Open CommonDialog1.FileName For Output As #1
For i = 1 To Len(Text1.Text)
Print #1, Mid(Text1.Text, i, 1);
Next i
Close #1
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_DblClick()
Dim inputdata As String * 1
tfilename = IIf(Right(File1.Path, 1) = "\", File1.Path + File1.FileName, File1.Path + "\" + File1.FileName)
Open tfilename For Input As #1
Text1.Text = ""
Do While Not EOF(1)
inputdata = Input(1, #1)
Text1.Text = Text1.Text + inputdata
Loop
Close #1
End Sub
Private Sub Form_Load()
Combo1.AddItem "*.*"
Combo1.AddItem "*.dat"
Combo1.AddItem "*.txt"
File1.Pattern = "*.txt"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -