📄 frmbrowser.frm
字号:
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"
Begin VB.Form frmBrowser
Caption = "WWW浏览器"
ClientHeight = 5115
ClientLeft = 3060
ClientTop = 3630
ClientWidth = 6540
LinkTopic = "Form1"
ScaleHeight = 5115
ScaleWidth = 6540
Begin MSComctlLib.ProgressBar proBar
Height = 195
Left = 2910
TabIndex = 6
Top = 4875
Width = 1830
_ExtentX = 3228
_ExtentY = 344
_Version = 393216
Appearance = 0
End
Begin MSComctlLib.StatusBar staBar
Align = 2 'Align Bottom
Height = 315
Left = 0
TabIndex = 5
Top = 4800
Width = 6540
_ExtentX = 11536
_ExtentY = 556
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 4921
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 6
Object.Width = 3528
MinWidth = 3528
TextSave = "22/12/2004"
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 5
TextSave = "18:11"
EndProperty
EndProperty
End
Begin VB.Timer timTimer
Enabled = 0 'False
Interval = 5
Left = 5880
Top = 1920
End
Begin VB.PictureBox picAddress
Align = 1 'Align Top
BorderStyle = 0 'None
Height = 675
Left = 0
ScaleHeight = 675
ScaleWidth = 6540
TabIndex = 4
TabStop = 0 'False
Top = 480
Width = 6540
Begin VB.ComboBox cboAddress
Height = 300
Left = 45
TabIndex = 2
Text = "http://www.microsoft.com"
Top = 300
Width = 3795
End
Begin VB.Label lblAddress
Caption = "地址(&A):"
Height = 255
Left = 30
TabIndex = 1
Tag = "地址(&A):"
Top = 60
Width = 3075
End
End
Begin MSComctlLib.Toolbar tbToolBar
Align = 1 'Align Top
Height = 480
Left = 0
TabIndex = 3
Top = 0
Width = 6540
_ExtentX = 11536
_ExtentY = 847
ButtonWidth = 820
ButtonHeight = 794
Appearance = 1
Style = 1
ImageList = "imlToolbarIcons"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 6
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "Back"
Object.ToolTipText = "Back"
ImageIndex = 1
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "Forward"
Object.ToolTipText = "Forward"
ImageIndex = 2
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "Stop"
Object.ToolTipText = "Stop"
ImageIndex = 3
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "Refresh"
Object.ToolTipText = "Refresh"
ImageIndex = 4
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "Home"
Object.ToolTipText = "Home"
ImageIndex = 5
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "Search"
Object.ToolTipText = "Search"
ImageIndex = 6
EndProperty
EndProperty
End
Begin MSComctlLib.ImageList imlToolbarIcons
Left = 5280
Top = 1200
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 24
ImageHeight = 24
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 6
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmBrowser.frx":0000
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmBrowser.frx":0712
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmBrowser.frx":0E24
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmBrowser.frx":1536
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmBrowser.frx":1C48
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmBrowser.frx":235A
Key = ""
EndProperty
EndProperty
End
Begin SHDocVwCtl.WebBrowser brwWebBrowser
Height = 2910
Left = 435
TabIndex = 0
Top = 1425
Width = 4590
ExtentX = 8096
ExtentY = 5133
ViewMode = 1
Offline = 0
Silent = 0
RegisterAsBrowser= 0
RegisterAsDropTarget= 1
AutoArrange = -1 'True
NoClientEdge = 0 'False
AlignLeft = 0 'False
NoWebView = 0 'False
HideFileNames = 0 'False
SingleClick = 0 'False
SingleSelection = 0 'False
NoFolders = 0 'False
Transparent = 0 'False
ViewID = "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
Location = "http:///"
End
Begin VB.Menu mnuFile
Caption = "文件"
Begin VB.Menu mnuNewBro
Caption = "新建窗口"
End
Begin VB.Menu mnuOpen
Caption = "打开"
End
Begin VB.Menu mnuOffline
Caption = "脱机工作"
End
Begin VB.Menu mnuQuit
Caption = "退出"
End
End
Begin VB.Menu mnuView
Caption = "查看"
Begin VB.Menu mnuToolbar
Caption = "工具栏"
Checked = -1 'True
End
Begin VB.Menu mnuStatus
Caption = "状态栏"
Checked = -1 'True
End
Begin VB.Menu mnuHistory
Caption = "历史记录"
End
End
Begin VB.Menu mnuOther
Caption = "其他"
Begin VB.Menu mnuMyfave
Caption = "收藏夹"
End
End
End
Attribute VB_Name = "frmBrowser"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public StartingAddress As String
Dim mbDontNavigateNow As Boolean
Dim tempstr As String
Dim keyTime As Integer
Private Sub brwWebBrowser_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long)
'当浏览器下载网页时,发生该事件,ProgressMax是下载完成的最大值,Progress是当前下载完成的值
'可在该事件中驱动标示下载百分比的进度指示控件。
If Progress > 0 Then
proBar.Max = Progress
End If
If Progress > 0 Then
proBar.Value = Progress
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -