home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "InternetExplorer Automation"
- ClientHeight = 3075
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4650
- LinkTopic = "Form1"
- ScaleHeight = 3075
- ScaleWidth = 4650
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton QuiteBttn
- Caption = "Quit"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 405
- Left = 2985
- TabIndex = 4
- Top = 2520
- Width = 1260
- End
- Begin VB.CommandButton ForwardBttn
- Caption = "Go Forward"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 405
- Left = 1680
- TabIndex = 3
- Top = 2520
- Width = 1260
- End
- Begin VB.CommandButton BackBttn
- Caption = "Go Back"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 405
- Left = 360
- TabIndex = 2
- Top = 2520
- Width = 1260
- End
- Begin VB.ListBox List1
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 2010
- Left = 1815
- TabIndex = 1
- Top = 270
- Width = 2475
- End
- Begin VB.CommandButton Command1
- Caption = "Show URL"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 450
- Left = 360
- TabIndex = 0
- Top = 315
- Width = 1260
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim IE As New InternetExplorer
- Private Sub BackBttn_Click()
- On Error GoTo NoBack
- IE.GoBack
- Exit Sub
- NoBack:
- MsgBox "There are no URL in the History List"
- End Sub
- Private Sub Command1_Click()
- IE.ToolBar = False
- IE.MenuBar = False
- IE.Visible = True
- IE.navigate "http://www." & List1.Text & ".com"
- End Sub
- Private Sub Form_Load()
- List1.AddItem "microsoft"
- List1.AddItem "sybex"
- List1.AddItem "alta-vista"
- End Sub
- Private Sub ForwardBttn_Click()
- On Error GoTo NoForward
- IE.GoForward
- Exit Sub
- NoForward:
- MsgBox "There are no URLs in the History List"
- End Sub
- Private Sub QuiteBttn_Click()
- IE.Quit
- End Sub
-