📄 form1.frm
字号:
VERSION 5.00
Object = "{48E59290-9880-11CF-9754-00AA00C00908}#1.0#0"; "MSINET.OCX"
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
Begin VB.Form Form1
Caption = "获得Internet上网页的源代码"
ClientHeight = 7635
ClientLeft = 60
ClientTop = 345
ClientWidth = 10590
LinkTopic = "Form1"
ScaleHeight = 7635
ScaleWidth = 10590
StartUpPosition = 3 '窗口缺省
Begin InetCtlsObjects.Inet Inet1
Left = -15
Top = 2850
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
End
Begin VB.CommandButton Command3
Caption = "退出"
Height = 465
Left = 9330
TabIndex = 6
Top = 60
Width = 1125
End
Begin VB.CommandButton Command1
Caption = "显示网页"
Height = 465
Left = 7050
TabIndex = 5
Top = 60
Width = 1125
End
Begin VB.CommandButton Command2
Caption = "显示源码"
Height = 465
Left = 8190
TabIndex = 3
Top = 60
Width = 1125
End
Begin VB.TextBox Text1
Height = 285
Left = 780
TabIndex = 1
Text = "http://www.mingrisoft.com"
Top = 135
Width = 5865
End
Begin SHDocVwCtl.WebBrowser WebBrowser1
Height = 6900
Left = 165
TabIndex = 4
Top = 600
Width = 10275
ExtentX = 18124
ExtentY = 12171
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 VB.TextBox Text2
Height = 6945
Left = 135
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 2
Top = 585
Width = 10335
End
Begin VB.Label Label1
Caption = "网址:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Left = 105
TabIndex = 0
Top = 150
Width = 825
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text <> "" Then
WebBrowser1.Navigate2 Text1.Text
WebBrowser1.Visible = True
Text2.Visible = False
End If
End Sub
Private Sub Command2_Click()
Text2.Visible = True
Text2.Text = Inet1.OpenURL(Text1.Text)
WebBrowser1.Visible = False
End Sub
Private Sub Command3_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -