home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / browser / form1.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-08-15  |  2.2 KB  |  74 lines

  1. VERSION 5.00
  2. Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
  3. Begin VB.Form Form1 
  4.    Caption         =   "Form1"
  5.    ClientHeight    =   2775
  6.    ClientLeft      =   1620
  7.    ClientTop       =   1545
  8.    ClientWidth     =   5220
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   2775
  11.    ScaleWidth      =   5220
  12.    Begin SHDocVwCtl.WebBrowser wbrDesiredURL 
  13.       Height          =   720
  14.       Left            =   120
  15.       TabIndex        =   0
  16.       Top             =   600
  17.       Width           =   720
  18.       Visible         =   0   'False
  19.       ExtentX         =   1270
  20.       ExtentY         =   1270
  21.       ViewMode        =   1
  22.       Offline         =   0
  23.       Silent          =   0
  24.       RegisterAsBrowser=   0
  25.       RegisterAsDropTarget=   0
  26.       AutoArrange     =   -1  'True
  27.       NoClientEdge    =   -1  'True
  28.       AlignLeft       =   0   'False
  29.       ViewID          =   "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
  30.       Location        =   ""
  31.    End
  32.    Begin VB.TextBox txtURL 
  33.       Height          =   285
  34.       Left            =   360
  35.       TabIndex        =   2
  36.       Text            =   "http://www.altavista.com"
  37.       Top             =   120
  38.       Width           =   3375
  39.    End
  40.    Begin VB.CommandButton cmdShowURL 
  41.       Caption         =   "Show URL"
  42.       Height          =   495
  43.       Left            =   3840
  44.       TabIndex        =   1
  45.       Top             =   0
  46.       Width           =   1215
  47.    End
  48.    Begin VB.Label Label1 
  49.       Caption         =   "URL"
  50.       Height          =   255
  51.       Left            =   0
  52.       TabIndex        =   3
  53.       Top             =   120
  54.       Width           =   375
  55.    End
  56. Attribute VB_Name = "Form1"
  57. Attribute VB_GlobalNameSpace = False
  58. Attribute VB_Creatable = False
  59. Attribute VB_PredeclaredId = True
  60. Attribute VB_Exposed = False
  61. Option Explicit
  62. Private Sub cmdShowURL_Click()
  63.     wbrDesiredURL.Navigate txtURL.Text
  64. End Sub
  65. Private Sub Form_Resize()
  66. Dim hgt As Single
  67.     hgt = ScaleHeight - wbrDesiredURL.Top
  68.     If hgt < 120 Then hgt = 120
  69.     wbrDesiredURL.Move 0, wbrDesiredURL.Top, ScaleWidth, hgt
  70. End Sub
  71. Private Sub wbrDesiredURL_DownloadComplete()
  72.     wbrDesiredURL.Visible = True
  73. End Sub
  74.