📄 form1.frm
字号:
VERSION 5.00
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
Begin VB.Form Form1
Caption = "浏览器"
ClientHeight = 4470
ClientLeft = 720
ClientTop = 810
ClientWidth = 6435
LinkTopic = "Form1"
ScaleHeight = 4470
ScaleWidth = 6435
Begin VB.CommandButton cmdSearch
Caption = "搜索"
Height = 375
Left = 3960
TabIndex = 9
Top = 3840
Width = 975
End
Begin VB.CommandButton cmdHome
Caption = "主页"
Height = 375
Left = 4920
TabIndex = 8
Top = 3840
Width = 975
End
Begin VB.CommandButton cmdRefresh
Caption = "刷新"
Height = 375
Left = 3000
TabIndex = 7
Top = 3840
Width = 975
End
Begin VB.CommandButton cmdStop
Caption = "停止"
Height = 375
Left = 2040
TabIndex = 6
Top = 3840
Width = 975
End
Begin VB.CommandButton cmdForward
Caption = "前进"
Height = 375
Left = 1080
TabIndex = 5
Top = 3840
Width = 975
End
Begin VB.CommandButton cmdBack
Caption = "后退"
Height = 375
Left = 120
TabIndex = 4
Top = 3840
Width = 975
End
Begin VB.CommandButton cmdNavigateOne
Caption = "进入"
Default = -1 'True
Height = 375
Left = 4440
TabIndex = 3
Top = 120
Width = 855
End
Begin VB.TextBox txtAddress1
Height = 285
Left = 1080
TabIndex = 2
Text = "http://zmhh.mycool.net"
Top = 120
Width = 3255
End
Begin SHDocVwCtl.WebBrowser brwWebOne
Height = 3135
Left = 240
TabIndex = 0
Top = 600
Width = 5775
ExtentX = 10186
ExtentY = 5530
ViewMode = 0
Offline = 0
Silent = 0
RegisterAsBrowser= 0
RegisterAsDropTarget= 1
AutoArrange = 0 'False
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.Label lblAddress1
Caption = "地址"
Height = 375
Left = 240
TabIndex = 1
Top = 120
Width = 855
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Navigate_Text()
brwWebOne.Navigate txtAddress1.Text
End Sub
Private Sub cmdBack_Click()
On Error GoTo NoBack
brwWebOne.GoBack
Exit Sub
NoBack:
MsgBox "There is no Page to go back to!"
End Sub
Private Sub cmdForward_Click()
On Error GoTo NoForward
brwWebOne.GoForward
Exit Sub
NoForward:
MsgBox "There are no files to load here!"
End Sub
Private Sub cmdHome_Click()
brwWebOne.GoHome
End Sub
Private Sub cmdNavigateOne_Click()
brwWebOne.Navigate txtAddress1.Text
End Sub
Private Sub cmdRefresh_Click()
brwWebOne.Refresh
End Sub
Private Sub cmdSearch_Click()
On Error GoTo NoSearch
brwWebOne.GoSearch
Exit Sub
NoSearch:
MsgBox "There is no search page to load"
End Sub
Private Sub cmdStop_Click()
brwWebOne.Stop
End Sub
Private Sub Form_Load()
Form1.Left = (Screen.Width - Form1.Width) / 2
Form1.Top = (Screen.Height - Form1.Height) / 2
Navigate_Text
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -