retweb.frm

来自「一个完整的HTML编辑器」· FRM 代码 · 共 45 行

FRM
45
字号
VERSION 5.00
Object = "{48E59290-9880-11CF-9754-00AA00C00908}#1.0#0"; "MSINET.OCX"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   Begin InetCtlsObjects.Inet Inet1 
      Left            =   1920
      Top             =   1560
      _ExtentX        =   1005
      _ExtentY        =   1005
      _Version        =   393216
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Form_Load()
    Dim b() As Byte
    
    'set protocol to HTTP
    Inet1.Protocol = icHTTP
    
    'set URL
    Inet1.URL = "http://www.microsoft.com"
    
    ' Retrieve the HTML data into a byte array.
    b() = Inet1.OpenURL(Inet1.URL, icByteArray)
    
    ' Create a local file from the retrieved data.
    Open "test.htm" For Binary Access Write As #1
    Put #1, , b()
    Close #1
End Sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?