⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 vb代码 网络网页浏览,另存 和其它IE功能
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "WebBrowser Tricks"
   ClientHeight    =   7005
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   8400
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   7005
   ScaleWidth      =   8400
   StartUpPosition =   2  'CenterScreen
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   2400
      Top             =   5640
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
      Flags           =   5
   End
   Begin VB.Frame Frame1 
      Caption         =   "Editing Options"
      Height          =   1575
      Left            =   120
      TabIndex        =   14
      Top             =   720
      Width           =   1695
      Begin VB.CommandButton cmdEdit 
         Caption         =   "Cut"
         Height          =   255
         Index           =   0
         Left            =   240
         TabIndex        =   20
         Top             =   360
         Width           =   1215
      End
      Begin VB.CommandButton cmdEdit 
         Caption         =   "Copy"
         Height          =   255
         Index           =   1
         Left            =   240
         TabIndex        =   19
         Top             =   600
         Width           =   1215
      End
      Begin VB.CommandButton cmdEdit 
         Caption         =   "Paste"
         Height          =   255
         Index           =   2
         Left            =   240
         TabIndex        =   18
         Top             =   840
         Width           =   1215
      End
      Begin VB.CommandButton cmdEdit 
         Caption         =   "Select All"
         Height          =   255
         Index           =   3
         Left            =   240
         TabIndex        =   17
         Top             =   1080
         Width           =   1215
      End
   End
   Begin VB.Frame Frame3 
      Caption         =   "The ""about: "" Method"
      Height          =   855
      Left            =   1920
      TabIndex        =   16
      Top             =   720
      Width           =   6375
      Begin VB.TextBox Text1 
         Height          =   285
         Left            =   1320
         TabIndex        =   21
         Top             =   360
         Width           =   4815
      End
      Begin VB.Label Label2 
         Caption         =   "Add Your text"
         Height          =   255
         Left            =   240
         TabIndex        =   22
         Top             =   360
         Width           =   1095
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "Text Size"
      Height          =   615
      Left            =   1920
      TabIndex        =   15
      Top             =   1680
      Width           =   6375
      Begin VB.CommandButton cmdText 
         Caption         =   "Tiny"
         Height          =   255
         Index           =   0
         Left            =   600
         TabIndex        =   27
         Top             =   240
         Width           =   975
      End
      Begin VB.CommandButton cmdText 
         Caption         =   "Small"
         Height          =   255
         Index           =   1
         Left            =   1680
         TabIndex        =   26
         Top             =   240
         Width           =   975
      End
      Begin VB.CommandButton cmdText 
         Caption         =   "Medium"
         Height          =   255
         Index           =   2
         Left            =   2760
         TabIndex        =   25
         Top             =   240
         Width           =   975
      End
      Begin VB.CommandButton cmdText 
         Caption         =   "Big"
         Height          =   255
         Index           =   3
         Left            =   3840
         TabIndex        =   24
         Top             =   240
         Width           =   975
      End
      Begin VB.CommandButton cmdText 
         Caption         =   "Huge"
         Height          =   255
         Index           =   4
         Left            =   4920
         TabIndex        =   23
         Top             =   240
         Width           =   975
      End
   End
   Begin VB.CommandButton cmdSave 
      Caption         =   "Save"
      Height          =   495
      Left            =   6480
      TabIndex        =   13
      Top             =   120
      Width           =   855
   End
   Begin VB.CommandButton cmdOpen 
      Caption         =   "Open"
      Height          =   495
      Left            =   5520
      TabIndex        =   12
      Top             =   120
      Width           =   855
   End
   Begin VB.CommandButton cmdFindFiles 
      Caption         =   "Find Files or Folders"
      Height          =   255
      Left            =   3600
      TabIndex        =   2
      Top             =   360
      Width           =   1815
   End
   Begin VB.CommandButton cmdFindTxt 
      Caption         =   "Find (on this page)"
      Height          =   255
      Left            =   3600
      TabIndex        =   1
      Top             =   120
      Width           =   1815
   End
   Begin VB.CommandButton cmdPSC 
      Caption         =   "PSC"
      Height          =   495
      Left            =   7440
      TabIndex        =   11
      Top             =   120
      Width           =   855
   End
   Begin VB.ComboBox cboAddress 
      Height          =   315
      Left            =   2040
      TabIndex        =   8
      Top             =   2400
      Width           =   6255
   End
   Begin VB.CommandButton cmdNav 
      Caption         =   "Refresh"
      Height          =   495
      Index           =   3
      Left            =   2640
      TabIndex        =   6
      Top             =   120
      Width           =   855
   End
   Begin VB.CommandButton cmdNav 
      Caption         =   "Stop"
      Height          =   495
      Index           =   2
      Left            =   1800
      TabIndex        =   5
      Top             =   120
      Width           =   855
   End
   Begin VB.CommandButton cmdNav 
      Caption         =   "Forward"
      Enabled         =   0   'False
      Height          =   495
      Index           =   1
      Left            =   960
      TabIndex        =   4
      Top             =   120
      Width           =   855
   End
   Begin VB.CommandButton cmdNav 
      Caption         =   "Back"
      Enabled         =   0   'False
      Height          =   495
      Index           =   0
      Left            =   120
      TabIndex        =   3
      Top             =   120
      Width           =   855
   End
   Begin SHDocVwCtl.WebBrowser Brow 
      Height          =   3735
      Left            =   120
      TabIndex        =   0
      Top             =   2880
      Width           =   8175
      ExtentX         =   14420
      ExtentY         =   6588
      ViewMode        =   0
      Offline         =   0
      Silent          =   0
      RegisterAsBrowser=   0
      RegisterAsDropTarget=   1
      AutoArrange     =   0   'False
      NoClientEdge    =   0   'False
      AlignLeft       =   0   'False
      ViewID          =   "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
      Location        =   ""
   End
   Begin MSComctlLib.ProgressBar PB 
      Height          =   255
      Left            =   7200
      TabIndex        =   10
      Top             =   6720
      Width           =   1095
      _ExtentX        =   1931
      _ExtentY        =   450
      _Version        =   393216
      Appearance      =   0
   End
   Begin VB.Label Label5 
      Caption         =   "Auto Complete Example"
      Height          =   255
      Left            =   240
      TabIndex        =   9
      Top             =   2520
      Width           =   1815
   End
   Begin VB.Label LblStatus 
      AutoSize        =   -1  'True
      Caption         =   "Status"
      Height          =   195
      Left            =   120
      TabIndex        =   7
      Top             =   6720
      Width           =   450
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Forwards As Boolean
Dim Backwards As Boolean
Dim nonav As Boolean
Private Sub Brow_CommandStateChange(ByVal Command As Long, ByVal Enable As Boolean)
'sets our back/forward buttons enabled state
On Error Resume Next
Select Case Command
    Case CSC_NAVIGATEFORWARD
            Forwards = Enable
    Case CSC_NAVIGATEBACK
            Backwards = Enable
End Select
cmdNav(0).Enabled = Backwards
cmdNav(1).Enabled = Forwards
If Command = -1 Then Exit Sub

End Sub

Private Sub Brow_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
On Error Resume Next
Dim temp As String

⌨️ 快捷键说明

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