home *** CD-ROM | disk | FTP | other *** search
Wrap
VERSION 5.00 Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.0#0"; "SHDOCVW.DLL" Begin VB.Form WEBForm BackColor = &H0000FFFF& Caption = "WebForm" ClientHeight = 4440 ClientLeft = 60 ClientTop = 345 ClientWidth = 7245 LinkTopic = "Form2" ScaleHeight = 4440 ScaleWidth = 7245 StartUpPosition = 3 'Windows Default Begin SHDocVwCtl.WebBrowser WebBrowser1 Height = 4125 Left = 150 TabIndex = 0 Top = 120 Width = 6930 Object.Height = 275 Object.Width = 462 AutoSize = 0 ViewMode = 1 AutoSizePercentage= 0 AutoArrange = -1 'True NoClientEdge = -1 'True AlignLeft = 0 'False End Attribute VB_Name = "WEBForm" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Explicit 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) Dim Position, Shape On Error Resume Next If Right$(URL, 8) <> "Demo.htm" Then Cancel = True Position = InStr(URL, "#") Shape = Mid$(URL, Position + 1) If Shape = "circle" Then VBForm.Cls VBForm.Circle (VBForm.Width / 2, VBForm.Height / 2), VBForm.Height / 3 VBForm.Label1.Caption = "Circle (Width / 2, Height / 2), Height / 3" End If If Shape = "box" Then VBForm.Cls VBForm.Line (VBForm.Width / 4, VBForm.Height / 4)-Step(VBForm.Width / 2, VBForm.Height / 2), , B VBForm.Label1.Caption = "Line (Width / 4, Height / 4)-Step(Width / 4, Height / 4), , B" End If End Sub