home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmFileTransfers
- BorderStyle = 0 'None
- ClientHeight = 2505
- ClientLeft = 5235
- ClientTop = 5595
- ClientWidth = 7830
- ControlBox = 0 'False
- Height = 2910
- Left = 5175
- LinkTopic = "Form1"
- LockControls = -1 'True
- MaxButton = 0 'False
- MDIChild = -1 'True
- MinButton = 0 'False
- ScaleHeight = 2505
- ScaleWidth = 7830
- ShowInTaskbar = 0 'False
- Top = 5250
- Visible = 0 'False
- Width = 7950
- Begin VB.CommandButton Command2
- Caption = "..."
- Height = 300
- Left = 3975
- TabIndex = 12
- Top = 840
- Width = 315
- End
- Begin VB.CommandButton Command1
- Caption = "..."
- Height = 300
- Left = 7095
- TabIndex = 11
- Top = 360
- Width = 315
- End
- Begin VB.TextBox txtGetDstFilename
- Height = 285
- Left = 4440
- TabIndex = 10
- Top = 360
- Width = 2655
- End
- Begin VB.TextBox txtGetSrcFilename
- Height = 285
- Left = 1320
- TabIndex = 7
- Top = 360
- Width = 2655
- End
- Begin VB.CommandButton cmdAbort
- Caption = "Abort"
- Height = 375
- Left = 240
- TabIndex = 6
- Top = 1800
- Width = 975
- End
- Begin VB.CommandButton cmdGetFile
- Caption = "GetFile"
- Height = 375
- Left = 240
- TabIndex = 5
- Top = 360
- Width = 975
- End
- Begin VB.CommandButton cmdPutFile
- Caption = "PutFile"
- Height = 375
- Left = 240
- TabIndex = 4
- Top = 840
- Width = 975
- End
- Begin VB.TextBox txtPutSrcFilename
- Height = 285
- Left = 1320
- TabIndex = 3
- Top = 840
- Width = 2655
- End
- Begin VB.TextBox txtPutDstFilename
- Height = 285
- Left = 4440
- TabIndex = 2
- Top = 840
- Width = 2655
- End
- Begin VB.CommandButton cmdSetType
- Caption = "SetType"
- Height = 375
- Left = 240
- TabIndex = 1
- Top = 1320
- Width = 975
- End
- Begin VB.CheckBox chkBinary
- Caption = "Binary"
- Height = 375
- Left = 1320
- TabIndex = 0
- Top = 1320
- Value = 1 'Checked
- Width = 735
- End
- Begin MSComDlg.CommonDialog CommonDialog1
- Left = 2520
- Top = 1440
- _ExtentX = 847
- _ExtentY = 847
- _Version = 327680
- FontSize = 8.6217e-39
- End
- Begin VB.Label Label3
- Caption = "DstFilename:"
- Height = 255
- Left = 4440
- TabIndex = 9
- Top = 120
- Width = 1335
- End
- Begin VB.Label Label2
- Caption = "SrcFilename:"
- Height = 255
- Left = 1320
- TabIndex = 8
- Top = 120
- Width = 1575
- End
- Attribute VB_Name = "frmFileTransfers"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdSetType_Click()
- If (chkBinary.Value = 1) Then
- MainForm.Ftp1.Type = 1
- Else
- MainForm.Ftp1.Type = 0
- End If
- MainForm.Ftp1.SendType MainForm.Ftp1.Type
- End Sub
- Private Sub cmdGetFile_Click()
- Dim s As String
- MainForm.Ftp1.SrcFilename = txtGetSrcFilename.Text
- MainForm.Ftp1.DstFilename = txtGetDstFilename.Text
- Call MainForm.ExecuteCommand(FtpActionGetFile)
- End Sub
- Private Sub cmdPutFile_Click()
- MainForm.Ftp1.SrcFilename = txtPutSrcFilename.Text
- MainForm.Ftp1.DstFilename = txtPutDstFilename.Text
- Call MainForm.ExecuteCommand(FtpActionPutFile)
- End Sub
- Private Sub cmdAbort_Click()
- MsgBox "This may take a few seconds, please be patient"
- Call MainForm.ExecuteCommand(FtpActionAbort)
- End Sub
- Private Sub Command1_Click()
- CommonDialog1.CancelError = True
- On Error Resume Next
- CommonDialog1.ShowSave
- If (Err <> 0) Then
- Exit Sub
- End If
- On Error GoTo 0
- txtGetDstFilename.Text = CommonDialog1.filename
- End Sub
- Private Sub Command2_Click()
- CommonDialog1.CancelError = True
- On Error Resume Next
- CommonDialog1.ShowOpen
- If (Err <> 0) Then
- Exit Sub
- End If
- On Error GoTo 0
- txtPutSrcFilename.Text = CommonDialog1.filename
- End Sub
- Private Sub Form_Load()
- chkBinary.Value = MainForm.Ftp1.Type
- End Sub
-