internet_transfer2.frm

来自「vb编程+从基础到实践光盘代码」· FRM 代码 · 共 71 行

FRM
71
字号
VERSION 5.00
Object = "{48E59290-9880-11CF-9754-00AA00C00908}#1.0#0"; "MSINET.OCX"
Begin VB.Form 简易网上文档浏览器 
   Caption         =   "简易网上文档浏览器"
   ClientHeight    =   4455
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6390
   LinkTopic       =   "Form1"
   ScaleHeight     =   4455
   ScaleWidth      =   6390
   StartUpPosition =   3  '窗口缺省
   Begin InetCtlsObjects.Inet Inet1 
      Left            =   2880
      Top             =   2760
      _ExtentX        =   1005
      _ExtentY        =   1005
      _Version        =   393216
   End
   Begin VB.CommandButton cmd1 
      Caption         =   "查看"
      Height          =   615
      Left            =   5280
      TabIndex        =   3
      Top             =   120
      Width           =   975
   End
   Begin VB.TextBox txtnote 
      Height          =   3615
      Left            =   0
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   2
      Top             =   840
      Width           =   6375
   End
   Begin VB.TextBox txtURL 
      Height          =   375
      Left            =   0
      TabIndex        =   1
      Top             =   360
      Width           =   5055
   End
   Begin VB.Label Label1 
      Caption         =   "请输入查看文件的地址:"
      Height          =   255
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   2175
   End
End
Attribute VB_Name = "简易网上文档浏览器"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Cmd1_Click()
Inet1.Cancel
cmd1.Enabled = False
txtnote.Text = Inet1.OpenURL(txtURL.Text)
If Len(txtURL.Text) > 10 Then
txtnote.Text = Inet1.OpenURL(txtURL.Text)
Else
MsgBox "enter valid document name in the url box"
End If
cmd1.Enabled = True
End Sub

⌨️ 快捷键说明

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