home *** CD-ROM | disk | FTP | other *** search
/ Using Visual Basic 5 (Platinum Edition) / vb5.iso / Code / ch40 / PlatITCCont / Internet_Transfer.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-07-04  |  2.6 KB  |  83 lines

  1. VERSION 5.00
  2. Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.1#0"; "RICHTX32.OCX"
  3. Object = "{48E59290-9880-11CF-9754-00AA00C00908}#1.0#0"; "MSINET.OCX"
  4. Begin VB.Form Internet_Transfer 
  5.    Caption         =   "Internet Transfer Control"
  6.    ClientHeight    =   4755
  7.    ClientLeft      =   60
  8.    ClientTop       =   345
  9.    ClientWidth     =   6750
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   4755
  12.    ScaleWidth      =   6750
  13.    StartUpPosition =   3  'Windows Default
  14.    Begin RichTextLib.RichTextBox RichTextBox1 
  15.       Height          =   3735
  16.       Left            =   180
  17.       TabIndex        =   4
  18.       Top             =   180
  19.       Width           =   6435
  20.       _ExtentX        =   11351
  21.       _ExtentY        =   6588
  22.       _Version        =   327680
  23.       Enabled         =   -1  'True
  24.       TextRTF         =   $"Internet_Transfer.frx":0000
  25.    End
  26.    Begin VB.CommandButton Command4 
  27.       Caption         =   "Cancel"
  28.       Height          =   495
  29.       Left            =   4800
  30.       TabIndex        =   3
  31.       Top             =   4140
  32.       Width           =   1215
  33.    End
  34.    Begin VB.CommandButton Command3 
  35.       Caption         =   "FTP"
  36.       Height          =   495
  37.       Left            =   3420
  38.       TabIndex        =   2
  39.       Top             =   4140
  40.       Width           =   1215
  41.    End
  42.    Begin VB.CommandButton Command2 
  43.       Caption         =   "GetHeader"
  44.       Height          =   495
  45.       Left            =   2040
  46.       TabIndex        =   1
  47.       Top             =   4140
  48.       Width           =   1215
  49.    End
  50.    Begin VB.CommandButton Command1 
  51.       Caption         =   "OpenURL"
  52.       Height          =   495
  53.       Left            =   660
  54.       TabIndex        =   0
  55.       Top             =   4140
  56.       Width           =   1215
  57.    End
  58.    Begin InetCtlsObjects.Inet Inet1 
  59.       Left            =   6120
  60.       Top             =   4080
  61.       _ExtentX        =   1005
  62.       _ExtentY        =   1005
  63.    End
  64. Attribute VB_Name = "Internet_Transfer"
  65. Attribute VB_GlobalNameSpace = False
  66. Attribute VB_Creatable = False
  67. Attribute VB_PredeclaredId = True
  68. Attribute VB_Exposed = False
  69. Option Explicit
  70. Private Sub Command1_Click()
  71.     RichTextBox1.Text = Inet1.OpenURL("http://www.microsoft.com")
  72. End Sub
  73. Private Sub Command2_Click()
  74.     RichTextBox1.Text = Inet1.OpenURL("http://www.microsoft.com")
  75.     RichTextBox1.Text = Inet1.GetHeader
  76. End Sub
  77. Private Sub Command3_Click()
  78.     RichTextBox1.Text = Inet1.OpenURL("ftp://ftp.microsoft.com/disclaimer.txt")
  79. End Sub
  80. Private Sub Command4_Click()
  81.     Inet1.Cancel
  82. End Sub
  83.