home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmHTMLClient2
- Caption = "HTML Client"
- ClientHeight = 3375
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4755
- LinkTopic = "Form1"
- ScaleHeight = 3375
- ScaleWidth = 4755
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton cmdDisplay
- Caption = "Display Source Code"
- Height = 495
- Left = 3360
- TabIndex = 2
- Top = 2760
- Width = 1215
- End
- Begin VB.CommandButton cmdCreate
- Caption = "Create Source Code"
- Height = 495
- Left = 120
- TabIndex = 1
- Top = 2760
- Width = 1215
- End
- Begin VB.TextBox txtHTML
- Height = 2655
- Left = 0
- MultiLine = -1 'True
- TabIndex = 0
- Top = 0
- Width = 4695
- End
- Attribute VB_Name = "frmHTMLClient2"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim HTML As Object
- Private Sub Form_Unload(Cancel As Integer)
- End
- End Sub
- Private Sub cmdCreate_Click()
- Set HTML = CreateObject( _
- "HTMLServer.HTMLFile")
- HTML.CreateSourceCode
- End Sub
- Private Sub cmdDisplay_Click()
- txtHTML.Text = HTML.SourceCode
- Open App.Path + "\VBWeb.htm" For Output As #1
- Print #1, HTML.SourceCode
- Close #1
- WebForm.Show 1
- WebForm.WebBrowser1.Navigate App.Path + "\VBWeb.htm"
- End Sub
-