home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / ch_code / ch13 / htmlsrvr / htmlclnt.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-02-20  |  1.5 KB  |  55 lines

  1. VERSION 5.00
  2. Begin VB.Form frmHTMLClient 
  3.    Caption         =   "HTML Client"
  4.    ClientHeight    =   3375
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   4695
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   3375
  10.    ScaleWidth      =   4695
  11.    StartUpPosition =   3  'Windows Default
  12.    Begin VB.CommandButton cmdDisplay 
  13.       Caption         =   "Display Source Code"
  14.       Height          =   495
  15.       Left            =   3360
  16.       TabIndex        =   2
  17.       Top             =   2760
  18.       Width           =   1215
  19.    End
  20.    Begin VB.CommandButton cmdCreate 
  21.       Caption         =   "Create Source Code"
  22.       Height          =   495
  23.       Left            =   120
  24.       TabIndex        =   1
  25.       Top             =   2760
  26.       Width           =   1215
  27.    End
  28.    Begin VB.TextBox txtHTML 
  29.       Height          =   2655
  30.       Left            =   0
  31.       Locked          =   -1  'True
  32.       MultiLine       =   -1  'True
  33.       TabIndex        =   0
  34.       Top             =   0
  35.       Width           =   4695
  36.    End
  37. Attribute VB_Name = "frmHTMLClient"
  38. Attribute VB_GlobalNameSpace = False
  39. Attribute VB_Creatable = False
  40. Attribute VB_PredeclaredId = True
  41. Attribute VB_Exposed = False
  42. Option Explicit
  43. Dim HTML As Object
  44. Private Sub Form_Unload(Cancel As Integer)
  45.     End
  46. End Sub
  47. Private Sub cmdCreate_Click()
  48.     Set HTML = CreateObject( _
  49.         "HTMLServer.HTMLFile")
  50.     HTML.CreateSourceCode
  51. End Sub
  52. Private Sub cmdDisplay_Click()
  53.     txtHTML.Text = HTML.SourceCode
  54. End Sub
  55.