home *** CD-ROM | disk | FTP | other *** search
Wrap
VERSION 5.00 Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX" Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.0#0"; "SHDOCVW.DLL" Begin VB.Form SuperBrowser Caption = "SuperBrrrrrowser" ClientHeight = 6450 ClientLeft = 60 ClientTop = 345 ClientWidth = 8835 FillColor = &H00FFFFFF& FillStyle = 0 'Solid LinkTopic = "Form1" ScaleHeight = 6450 ScaleWidth = 8835 StartUpPosition = 3 'Windows Default Begin TabDlg.SSTab SSTab1 Height = 5700 Left = 120 TabIndex = 0 Top = 270 Width = 8550 _ExtentX = 15081 _ExtentY = 10054 _Version = 262144 TabHeight = 520 TabCaption(0) = "Tab 0" TabPicture(0) = "SprBrwsr.frx":0000 Tab(0).ControlCount= 1 Tab(0).ControlEnabled= -1 'True Tab(0).Control(0)= "WebBrowser1(0)" Tab(0).Control(0).Enabled= 0 'False TabCaption(1) = "Tab 1" TabPicture(1) = "SprBrwsr.frx":001C Tab(1).ControlCount= 1 Tab(1).ControlEnabled= 0 'False Tab(1).Control(0)= "WebBrowser1(1)" Tab(1).Control(0).Enabled= 0 'False TabCaption(2) = "Tab 2" TabPicture(2) = "SprBrwsr.frx":0038 Tab(2).ControlCount= 1 Tab(2).ControlEnabled= 0 'False Tab(2).Control(0)= "WebBrowser1(2)" Tab(2).Control(0).Enabled= 0 'False Begin SHDocVwCtl.WebBrowser WebBrowser1 Height = 4725 Index = 0 Left = 240 TabIndex = 1 Top = 615 Width = 7980 Object.Height = 315 Object.Width = 532 AutoSize = 0 ViewMode = 1 AutoSizePercentage= 0 AutoArrange = -1 'True NoClientEdge = -1 'True AlignLeft = 0 'False End Begin SHDocVwCtl.WebBrowser WebBrowser1 Height = 4860 Index = 1 Left = -74700 TabIndex = 2 Top = 600 Width = 7995 Object.Height = 324 Object.Width = 533 AutoSize = 0 ViewMode = 1 AutoSizePercentage= 0 AutoArrange = -1 'True NoClientEdge = -1 'True AlignLeft = 0 'False End Begin SHDocVwCtl.WebBrowser WebBrowser1 Height = 4770 Index = 2 Left = -74670 TabIndex = 3 Top = 585 Width = 7935 Object.Height = 318 Object.Width = 529 AutoSize = 0 ViewMode = 1 AutoSizePercentage= 0 AutoArrange = -1 'True NoClientEdge = -1 'True AlignLeft = 0 'False End End Begin VB.Label Label1 BeginProperty Font Name = "MS Sans Serif" Size = 9.75 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 300 Left = 135 TabIndex = 4 Top = 6045 Width = 3360 End Attribute VB_Name = "SuperBrowser" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Form_Load() WebBrowser1(0).Navigate "http://home.microsoft.com" WebBrowser1(1).Navigate "http://www.sybex.com" WebBrowser1(2).Navigate "http://www.alta-vista.com" End Sub Private Sub WebBrowser1_BeforeNavigate(Index As Integer, ByVal URL As String, ByVal Flags As Long, ByVal TargetFrameName As String, PostData As Variant, ByVal Headers As String, Cancel As Boolean) SSTab1.TabCaption(Index) = URL End Sub Private Sub WebBrowser1_DownloadBegin(Index As Integer) Debug.Print "Started Download for tab #" & Index End Sub Private Sub WebBrowser1_DownloadComplete(Index As Integer) Debug.Print "Completed download for tab #" & Index End Sub Private Sub WebBrowser1_NavigateComplete(Index As Integer, ByVal URL As String) SSTab1.TabCaption(Index) = WebBrowser1(Index).LocationName End Sub Private Sub WebBrowser1_ProgressChange(Index As Integer, ByVal Progress As Long, ByVal ProgressMax As Long) If Index = 0 Then If Progress >= 0 Then Label1.Caption = "Download Progress " & Progress & "/" & ProgressMax Else Label1.Caption = "Page downloaded" End If End If End Sub