home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / source / chap07 / lst71.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-11-19  |  5.7 KB  |  172 lines

  1. VERSION 4.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Custom Web Browsing"
  4.    ClientHeight    =   5940
  5.    ClientLeft      =   360
  6.    ClientTop       =   2085
  7.    ClientWidth     =   8940
  8.    Height          =   6345
  9.    Left            =   300
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   5940
  12.    ScaleWidth      =   8940
  13.    Top             =   1740
  14.    Width           =   9060
  15.    Begin VB.CommandButton btnGo 
  16.       BackColor       =   &H00808080&
  17.       Caption         =   "Go"
  18.       Height          =   375
  19.       Left            =   4080
  20.       TabIndex        =   3
  21.       Top             =   0
  22.       Width           =   615
  23.    End
  24.    Begin VB.TextBox txtAddress 
  25.       Height          =   375
  26.       Left            =   960
  27.       TabIndex        =   2
  28.       Text            =   "http://www.microsoft.com"
  29.       Top             =   0
  30.       Width           =   3015
  31.    End
  32.    Begin VB.Image imageSearch 
  33.       Height          =   525
  34.       Left            =   7800
  35.       Picture         =   "lst71.frx":0000
  36.       Top             =   0
  37.       Width           =   585
  38.    End
  39.    Begin VB.Image imageHome 
  40.       Height          =   525
  41.       Left            =   7200
  42.       Picture         =   "lst71.frx":033E
  43.       Top             =   0
  44.       Width           =   585
  45.    End
  46.    Begin VB.Image imageRefresh 
  47.       Height          =   525
  48.       Left            =   6600
  49.       Picture         =   "lst71.frx":067C
  50.       Top             =   0
  51.       Width           =   585
  52.    End
  53.    Begin VB.Image imageStop 
  54.       Height          =   525
  55.       Left            =   6000
  56.       Picture         =   "lst71.frx":09BA
  57.       Top             =   0
  58.       Width           =   585
  59.    End
  60.    Begin VB.Image imageForward 
  61.       Height          =   525
  62.       Left            =   5400
  63.       Picture         =   "lst71.frx":0CF8
  64.       Top             =   0
  65.       Width           =   585
  66.    End
  67.    Begin VB.Image imageBack 
  68.       Height          =   525
  69.       Left            =   4800
  70.       Picture         =   "lst71.frx":1036
  71.       Top             =   0
  72.       Width           =   585
  73.    End
  74.    Begin VB.Label Label1 
  75.       BackColor       =   &H00808080&
  76.       Caption         =   "Address"
  77.       Height          =   375
  78.       Left            =   120
  79.       TabIndex        =   1
  80.       Top             =   0
  81.       Width           =   735
  82.    End
  83.    Begin SHDocVwCtl.WebBrowser WebBrowser1 
  84.       Height          =   4575
  85.       Left            =   120
  86.       TabIndex        =   0
  87.       Top             =   600
  88.       Width           =   8670
  89.       Object.Height          =   202
  90.       Object.Width           =   382
  91.       AutoSize        =   0
  92.       ViewMode        =   1
  93.       AutoSizePercentage=   0
  94.       AutoArrange     =   -1  'True
  95.       NoClientEdge    =   -1  'True
  96.       AlignLeft       =   0   'False
  97.    End
  98. Attribute VB_Name = "Form1"
  99. Attribute VB_Creatable = False
  100. Attribute VB_Exposed = False
  101. Private Sub btnGo_Click()
  102.     WebBrowser1.Navigate txtAddress
  103. End Sub
  104. Private Sub imageBack_Click()
  105.     'go back one item in the history list
  106.     WebBrowser1.GoBack
  107. End Sub
  108. Private Sub imageForward_Click()
  109.     'go one item forward in the history list
  110.     WebBrowser1.GoForward
  111. End Sub
  112. Private Sub imageHome_Click()
  113.     'go to the current page or start page
  114.     WebBrowser1.GoHome
  115. End Sub
  116. Private Sub imageRefresh_Click()
  117.     'reload the page that is displaying
  118.     WebBrowser1.Refresh
  119. End Sub
  120. Private Sub imageSearch_Click()
  121.     'go to the current search page specified
  122.     'in the internet control panel and the IE option
  123.     'dialog box
  124.     WebBrowser1.GoSearch
  125. End Sub
  126. Private Sub imageStop_Click()
  127.     'stop the downloading or navigation
  128.     WebBrowser1.Stop
  129. End Sub
  130. Private Sub WebBrowser1_BeforeNavigate(ByVal URL As String, ByVal Flags As Long, ByVal TargetFrameName As String, PostData As Variant, ByVal Headers As String, Cancel As Boolean)
  131.     Debug.Print "beforeNavigation"
  132. End Sub
  133. Private Sub WebBrowser1_CommandStateChange(ByVal Command As Long, ByVal Enable As Boolean)
  134.     Debug.Print "CommandStateChange"
  135. End Sub
  136. Private Sub WebBrowser1_DownloadBegin()
  137.     Debug.Print "DownloadBegin"
  138. End Sub
  139. Private Sub WebBrowser1_DownloadComplete()
  140.     Debug.Print "DownloadComplete"
  141. End Sub
  142. Private Sub WebBrowser1_FrameBeforeNavigate(ByVal URL As String, ByVal Flags As Long, ByVal TargetFrameName As String, PostData As Variant, ByVal Headers As String, Cancel As Boolean)
  143.     Debug.Print "FrameBeforeNavigate"
  144. End Sub
  145. Private Sub WebBrowser1_FrameNavigateComplete(ByVal URL As String)
  146.     Debug.Print "FrameNavigateComplete"
  147. End Sub
  148. Private Sub WebBrowser1_FrameNewWindow(ByVal URL As String, ByVal Flags As Long, ByVal TargetFrameName As String, PostData As Variant, ByVal Headers As String, Processed As Boolean)
  149.     Debug.Print "FrameNewWindow"
  150. End Sub
  151. Private Sub WebBrowser1_NavigateComplete(ByVal URL As String)
  152.     Debug.Print "NavigateComplete"
  153. End Sub
  154. Private Sub WebBrowser1_NewWindow(ByVal URL As String, ByVal Flags As Long, ByVal TargetFrameName As String, PostData As Variant, ByVal Headers As String, Processed As Boolean)
  155.     Debug.Print "NewWindow"
  156. End Sub
  157. Private Sub WebBrowser1_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long)
  158.     Debug.Print "ProgressChange"
  159. End Sub
  160. Private Sub WebBrowser1_PropertyChange(ByVal szProperty As String)
  161.     Debug.Print "PropertyChange"
  162. End Sub
  163. Private Sub WebBrowser1_Quit(Cancel As Boolean)
  164.     Debug.Print "Quit"
  165. End Sub
  166. Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
  167.     Debug.Print "StatusTextChange"
  168. End Sub
  169. Private Sub WebBrowser1_TitleChange(ByVal Text As String)
  170.     Debug.Print "TitleChange"
  171. End Sub
  172.