VERSION 4.00 Begin VB.Form DLPage Appearance = 0 'Flat AutoRedraw = -1 'True BackColor = &H00000000& BorderStyle = 4 'Fixed ToolWindow Caption = "Retreiving Page" ClientHeight = 720 ClientLeft = 2085 ClientTop = 5340 ClientWidth = 4680 Height = 1185 Left = 1995 LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 720 ScaleWidth = 4680 Top = 4965 Visible = 0 'False Width = 4860 Begin VB.PictureBox Logo Appearance = 0 'Flat AutoRedraw = -1 'True AutoSize = -1 'True BackColor = &H00000000& FillStyle = 0 'Solid ForeColor = &H80000008& Height = 450 Left = 120 Negotiate = -1 'True ScaleHeight = 420 ScaleWidth = 420 TabIndex = 2 Top = 120 Width = 450 Begin VB.Timer tmrLogo Interval = 250 Left = 240 Top = -180 End End Begin VB.Timer tmrDL Left = 4080 Top = 0 End Begin VB.Label lblSavingTo AutoSize = -1 'True BackStyle = 0 'Transparent Caption = "Saving Data To:" ForeColor = &H0000FF00& Height = 195 Left = 840 TabIndex = 6 Top = 480 Width = 1170 End Begin VB.Label FileName Caption = "FileName" Height = 255 Left = 1200 TabIndex = 5 Top = 0 Visible = 0 'False Width = 735 End Begin MSComctlLib.ImageList ImageList1 Left = 3480 Top = 0 _ExtentX = 1005 _ExtentY = 1005 BackColor = -2147483643 ImageWidth = 26 ImageHeight = 26 MaskColor = 12632256 _Version = 393216 BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} NumListImages = 11 BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} Picture = "DLWebPage.frx":0000 Key = "" EndProperty BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} Picture = "DLWebPage.frx":0730 Key = "" EndProperty BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} Picture = "DLWebPage.frx":0E60 Key = "" EndProperty BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} Picture = "DLWebPage.frx":1590 Key = "" EndProperty BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} Picture = "DLWebPage.frx":1CC0 Key = "" EndProperty BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} Picture = "DLWebPage.frx":23F0 Key = "" EndProperty BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} Picture = "DLWebPage.frx":2B20 Key = "" EndProperty BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} Picture = "DLWebPage.frx":3250 Key = "" EndProperty BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} Picture = "DLWebPage.frx":3980 Key = "" EndProperty BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} Picture = "DLWebPage.frx":40B0 Key = "" EndProperty BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} Picture = "DLWebPage.frx":47E0 Key = "" EndProperty EndProperty End Begin VB.Label GetURL Caption = "GetURL" Height = 255 Left = 2040 TabIndex = 4 Top = 0 Visible = 0 'False Width = 735 End Begin VB.Label Action Caption = "Action" Height = 255 Left = 2880 TabIndex = 3 Top = 0 Visible = 0 'False Width = 1215 End Begin VB.Label lblBytes AutoSize = -1 'True BackStyle = 0 'Transparent Caption = "Bytes Downloaded So Far...." ForeColor = &H0000FFFF& Height = 195 Left = 840 TabIndex = 1 Top = 240 Width = 2025 End Begin VB.Label lblRetrieve AutoSize = -1 'True BackStyle = 0 'Transparent Caption = "Retrieving: Stand By...." ForeColor = &H0000FFFF& Height = 195 Left = 840 TabIndex = 0 Top = 0 Width = 1680 End End Attribute VB_Name = "DLPage" Attribute VB_Creatable = False Attribute VB_Exposed = False Option Explicit Dim CurrentLogo As Long ' "" Then Kill "C:\Temp\log.txt" Open OutputFile For Output As #1 Print #1, StrToPut Close #1 If hOpenUrl <> 0 Then InternetCloseHandle (hOpenUrl) If hOpen <> 0 Then InternetCloseHandle (hOpen) Dim Prog As String If Action = "ViewSource" Then Prog = Shell("Notepad.exe " & App.Path & "\Source.txt", 1) End If Unload DLPage ' rt.filename = "C:\Temp\log.txt" End Sub Private Sub filename_Change() lblSavingTo.Caption = "Saving Data To: " & filename.Caption End Sub Private Sub Form_Load() 'How to use ' Make form visible by DLPage.visible = True ' Next: Set DLPage.GetURL to the URL you want to download SetWindowPos Me.hWnd, HWND_TOPMOST, Me.Left / 15, _ Me.Top / 15, Me.Width / 15, _ Me.Height / 15, SWP_NOACTIVATE Or SWP_SHOWWINDOW CurrentLogo = 1 tmrLogo.Enabled = True tmrLogo.Interval = Window.tmrLogo.Interval End Sub Private Sub geturl_Change() GetDataFrom geturl.Caption, filename.Caption End Sub Private Sub tmrLogo_Timer() On Error GoTo ErrorHandler: Dim LogoInterval As Integer logo.Picture = ImageList1.ListImages(CurrentLogo).Picture CurrentLogo = CurrentLogo + 1 If CurrentLogo >= 12 Then CurrentLogo = 1 ErrorHandler: If Err.Number = 53 Then CurrentLogo = 0 Resume Next End If End Sub