📄 lzexpand.frm
字号:
VERSION 5.00
Object = "{8A1C4FDC-11A7-11D3-938B-0000832EF44D}#2.0#0"; "FASTWin.ocx"
Begin VB.Form frmLZExpand
BorderStyle = 3 'Fixed Dialog
Caption = "LZExpand demo"
ClientHeight = 2670
ClientLeft = 45
ClientTop = 330
ClientWidth = 4515
Icon = "LZExpand.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2670
ScaleWidth = 4515
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton cmdExpand
Caption = "Expand"
Height = 420
Left = 1035
TabIndex = 4
Top = 1575
Width = 2400
End
Begin VB.TextBox txtTarget
Height = 330
Left = 1170
TabIndex = 3
Top = 630
Width = 3165
End
Begin VB.TextBox txtSource
Height = 330
Left = 1170
TabIndex = 2
Top = 180
Width = 3165
End
Begin FLWDiskFile.FWLZExpand objLZExpand
Left = 165
Top = 1485
_ExtentX = 820
_ExtentY = 820
End
Begin VB.Label lblLabel1
AutoSize = -1 'True
Caption = "You can find the compress.exe utility in ..\DevStudio\VB\setupkit\kitfil32>compress.exe"
Height = 390
Index = 3
Left = 495
TabIndex = 6
Top = 2160
Width = 3630
WordWrap = -1 'True
End
Begin VB.Label lblLabel1
AutoSize = -1 'True
Caption = "If this text box is empty the target filename assumes the stored in the compressed file"
Height = 390
Index = 2
Left = 1170
TabIndex = 5
Top = 1035
Width = 3195
WordWrap = -1 'True
End
Begin VB.Label lblLabel1
AutoSize = -1 'True
Caption = "Target file"
Height = 195
Index = 1
Left = 180
TabIndex = 1
Top = 675
Width = 705
End
Begin VB.Label lblLabel1
AutoSize = -1 'True
Caption = "Source file"
Height = 195
Index = 0
Left = 180
TabIndex = 0
Top = 225
Width = 750
End
End
Attribute VB_Name = "frmLZExpand"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdExpand_Click()
' if the file is compressed with /r the FileOut property
' obtain the expanded name automatically
objLZExpand.FileIn = txtSource.Text
' if the user want change the name...
If Trim(txtSource.Text) <> "" Then
objLZExpand.FileOut = txtTarget.Text
End If
If objLZExpand.Extract Then
Call MsgBox("Extraction ok")
Else
Call MsgBox("Extraction error")
End If
txtSource.Text = objLZExpand.FileIn
txtTarget.Text = objLZExpand.FileOut
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -