📄 frmbrowser.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "shdocvw.dll"
Begin VB.Form frmbrowser
Caption = "Form1"
ClientHeight = 4260
ClientLeft = 60
ClientTop = 345
ClientWidth = 5910
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 4260
ScaleWidth = 5910
Begin VB.ComboBox Combo1
Height = 300
Left = 0
TabIndex = 2
Text = "http://go.163.com/goldseal94"
Top = 900
Width = 5895
End
Begin MSComctlLib.ImageList ImageList1
Left = 5040
Top = 2820
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
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":0452
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmbrowser.frx":08A4
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmbrowser.frx":0CF6
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmbrowser.frx":1148
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmbrowser.frx":159A
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 870
Left = 0
TabIndex = 1
Top = 0
Width = 5910
_ExtentX = 10425
_ExtentY = 1535
ButtonWidth = 1032
ButtonHeight = 1376
Appearance = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 6
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "后退"
Key = "Back"
ImageIndex = 1
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "前进"
Key = "Forward"
ImageIndex = 2
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "停止"
Key = "Stop"
ImageIndex = 3
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "刷新"
Key = "Refresh"
ImageIndex = 4
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "主页"
Key = "Home"
ImageIndex = 5
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "搜索"
Key = "Search"
ImageIndex = 6
EndProperty
EndProperty
End
Begin SHDocVwCtl.WebBrowser WebBrowser1
Height = 3015
Left = 0
TabIndex = 0
Top = 1260
Width = 5895
ExtentX = 10398
ExtentY = 5318
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
End
Attribute VB_Name = "frmbrowser"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Combo1_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyReturn And Combo1.Text <> "" Then
WebBrowser1.Navigate Combo1.Text
End If
End Sub
Private Sub Form_Load()
On Error Resume Next
Me.Show
Toolbar1.Refresh
Form_Resize
Combo1.Move 10, 10 + Toolbar1.Height
Combo1.AddItem Combo1.Text
WebBrowser1.Navigate Combo1.Text
End Sub
Private Sub Form_Resize()
On Error Resume Next
Combo1.Width = Me.ScaleWidth - 20
WebBrowser1.Width = Me.ScaleWidth
WebBrowser1.Height = Me.ScaleHeight
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
On Error Resume Next
Select Case Button.Key
Case "Back"
WebBrowser1.GoBack
Case "Forward"
WebBrowser1.GoForward
Case "Refresh"
WebBrowser1.Refresh
Case "Home"
WebBrowser1.GoHome
Case "Search"
WebBrowser1.GoSearch
Case "Stop"
WebBrowser1.Stop
End Select
Me.Caption = WebBrowser1.LocationName
End Sub
Private Sub WebBrowser1_DownloadComplete()
On Error Resume Next
Me.Caption = WebBrowser1.LocationName
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -