home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form ZSample2
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 3 'Fixed Dialog
- Caption = "Open ZIP File"
- ClientHeight = 3270
- ClientLeft = 1725
- ClientTop = 3420
- ClientWidth = 7215
- ControlBox = 0 'False
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 3675
- Left = 1665
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3270
- ScaleWidth = 7215
- Top = 3075
- Width = 7335
- Begin VB.DriveListBox Drive1
- Appearance = 0 'Flat
- Height = 315
- Left = 3000
- TabIndex = 4
- Top = 2760
- Width = 2535
- End
- Begin VB.DirListBox Dir1
- Appearance = 0 'Flat
- Height = 1605
- Left = 3000
- TabIndex = 8
- Top = 840
- Width = 2535
- End
- Begin VB.FileListBox File1
- Appearance = 0 'Flat
- Height = 2175
- Left = 240
- Pattern = "*.ZIP"
- TabIndex = 5
- Top = 840
- Width = 2535
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- Height = 285
- Left = 240
- TabIndex = 3
- Top = 480
- Width = 2535
- End
- Begin VB.CommandButton Command2
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Cancel"
- Height = 375
- Left = 5760
- TabIndex = 1
- Top = 720
- Width = 1215
- End
- Begin VB.CommandButton Command1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "OK"
- Default = -1 'True
- Height = 375
- Left = 5760
- TabIndex = 0
- Top = 240
- Width = 1215
- End
- Begin VB.Label Label4
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Drives:"
- ForeColor = &H80000008&
- Height = 255
- Left = 3000
- TabIndex = 9
- Top = 2520
- Width = 1335
- End
- Begin VB.Label Label3
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 255
- Left = 3000
- TabIndex = 7
- Top = 525
- Width = 2535
- End
- Begin VB.Label Label2
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Directories:"
- ForeColor = &H80000008&
- Height = 255
- Left = 3000
- TabIndex = 6
- Top = 240
- Width = 1335
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "File Name:"
- ForeColor = &H80000008&
- Height = 255
- Left = 240
- TabIndex = 2
- Top = 240
- Width = 1335
- End
- Attribute VB_Name = "ZSample2"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click()
- On Error GoTo ErrorHandle
- If Right$(Dir1.Path, 1) = "\" Then
- ZSample.ZipInfo1.filename = Dir1.Path & Text1.Text
- Else
- ZSample.ZipInfo1.filename = Dir1.Path & "\" & Text1.Text
- End If
- If ZSample.ZipInfo1.ListCount >= 0 Then
- ZSample2.Hide
- End If
- Exit Sub
- ErrorHandle:
- MsgBox Error$(Err), 48, "Open ZIP"
- On Error Resume Next
- Resume ExitError
- ExitError:
- End Sub
- Private Sub Command2_Click()
- ZSample2.Hide
- End Sub
- Private Sub Dir1_Change()
- Label3.Caption = Dir1.Path
- File1.Path = Dir1.Path
- End Sub
- Private Sub Drive1_Change()
- Dir1.Path = Drive1.Drive
- End Sub
- Private Sub File1_Click()
- Text1.Text = File1.filename
- End Sub
- Private Sub File1_DblClick()
- Command1_Click
- End Sub
- Private Sub Form_Load()
- Label3.Caption = Dir1.Path
- End Sub
-