📄 form1.frm
字号:
VERSION 5.00
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.dll"
Begin VB.Form Form1
Caption = "成都一三五星实业有限公司WEB浏览器"
ClientHeight = 7215
ClientLeft = 60
ClientTop = 345
ClientWidth = 7725
LinkTopic = "Form1"
ScaleHeight = 7215
ScaleWidth = 7725
StartUpPosition = 2 '屏幕中心
WindowState = 2 'Maximized
Begin VB.CommandButton Command4
Caption = "停止"
Height = 300
Left = 5280
TabIndex = 9
Top = 60
Width = 735
End
Begin VB.CommandButton Command3
Caption = "向后"
Height = 300
Left = 6960
TabIndex = 8
Top = 60
Width = 735
End
Begin VB.CommandButton Command2
Caption = "向前"
Height = 300
Left = 6120
TabIndex = 7
Top = 60
Width = 735
End
Begin VB.ComboBox Combo1
CausesValidation= 0 'False
Height = 300
ItemData = "Form1.frx":0000
Left = 60
List = "Form1.frx":0025
TabIndex = 6
Text = "成都一三五星实业有限公司内部OA办公系统"
Top = 60
Width = 4215
End
Begin VB.CommandButton Command1
Caption = "链 接"
Height = 300
Left = 4320
TabIndex = 5
Top = 60
Width = 855
End
Begin VB.PictureBox Picture2
Appearance = 0 'Flat
BackColor = &H80000000&
ForeColor = &H80000008&
Height = 255
Left = 20
ScaleHeight = 225
ScaleWidth = 5205
TabIndex = 3
Top = 6960
Width = 5235
Begin VB.TextBox Text1
Appearance = 0 'Flat
BackColor = &H80000000&
BorderStyle = 0 'None
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 60
TabIndex = 4
Text = "等待任务 ... ..."
Top = 0
Width = 5055
End
End
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
BackColor = &H80000000&
ForeColor = &H80000008&
Height = 255
Left = 5280
ScaleHeight = 225
ScaleWidth = 2265
TabIndex = 0
Top = 6960
Width = 2295
Begin VB.Label Label1
Alignment = 2 'Center
BackColor = &H00FF0000&
Caption = "0%"
ForeColor = &H00FFFFFF&
Height = 195
Left = 0
TabIndex = 2
Top = 15
Width = 1095
End
End
Begin SHDocVwCtl.WebBrowser WebBrowser1
Height = 6375
Left = 0
TabIndex = 1
Top = 400
Width = 7695
ExtentX = 13573
ExtentY = 11245
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 = ""
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Combo1_Click()
Call Command1_Click
End Sub
Private Sub Command1_Click()
If Combo1.Text = "成都一三五星实业有限公司内部OA办公系统" Or Combo1.Text = "成都一三五星实业有限公司电子商务网站" Or Combo1.Text = "成都亚明电子公司电子商务网站" Or Combo1.Text = "中国电子元件网" Or Combo1.Text = "阿里巴巴" Or Combo1.Text = "网易" Or Combo1.Text = "新浪" Or Combo1.Text = "腾讯" Or Combo1.Text = "雅虎" Or Combo1.Text = "百度" Or Combo1.Text = "谷歌" Then
If Combo1.Text = "成都一三五星实业有限公司内部OA办公系统" Then WebBrowser1.Navigate ("http://192.168.1.66")
If Combo1.Text = "成都一三五星实业有限公司电子商务网站" Then WebBrowser1.Navigate ("http://www.135x.cn")
If Combo1.Text = "成都亚明电子公司电子商务网站" Then WebBrowser1.Navigate ("http://www.cccym.com")
If Combo1.Text = "中国电子元件网" Then WebBrowser1.Navigate ("http://www.cedk.org")
If Combo1.Text = "阿里巴巴" Then WebBrowser1.Navigate ("http://www.alibaba.com.cn")
If Combo1.Text = "网易" Then WebBrowser1.Navigate ("http://www.163.com")
If Combo1.Text = "新浪" Then WebBrowser1.Navigate ("http://www.sina.com.cn")
If Combo1.Text = "腾讯" Then WebBrowser1.Navigate ("http://www.qq.com")
If Combo1.Text = "雅虎" Then WebBrowser1.Navigate ("http://www.yahoo.com.cn")
If Combo1.Text = "百度" Then WebBrowser1.Navigate ("http://www.baidu.com")
If Combo1.Text = "谷歌" Then WebBrowser1.Navigate ("http://www.google.com")
Else
MsgBox ("不允许访问 “" & Combo1.Text & "” 网站")
End If
End Sub
Private Sub Command2_Click()
On Error GoTo handle
WebBrowser1.GoBack
Exit Sub
handle:
End Sub
Private Sub Command3_Click()
On Error GoTo handle
WebBrowser1.GoForward
Exit Sub
handle:
End Sub
Private Sub Command4_Click()
WebBrowser1.Navigate ("about:blank")
End Sub
Private Sub Form_Load()
Form1.Visible = False
Dialog.Show
Dialog.Timer1.Interval = 3000
WebBrowser1.Navigate ("about:blank")
Call paintwindows
End Sub
Private Sub Form_Paint()
Call paintwindows
End Sub
Private Sub Form_Resize()
If Form1.Height < 3000 Or Form1.Width < 7845 Then
Form1.Height = 3000
Form1.Width = 7845
End If
Call paintwindows
End Sub
Private Sub Form_Unload(Cancel As Integer)
Dialog.Timer2.Interval = 2000
Dialog.Visible = True
End Sub
Private Sub WebBrowser1_ProgressChange(ByVal progress As Long, ByVal ProgressMax As Long)
If progress > 0 And ProgressMax > 0 Then
Label1.Width = (progress / ProgressMax) * Picture1.Width
If progress / ProgressMax < 1 Or progress / ProgressMax = 1 Then Label1.Caption = (progress / ProgressMax) * 100 & "%"
End If
End Sub
Sub paintwindows()
If Form1.Width > 7844 Then
WebBrowser1.Width = Form1.Width - 120
Picture1.Width = Form1.Width - 5400
Label1.Width = 1
Label1.Caption = ""
Picture1.Top = Form1.Height - 680
Picture2.Top = Form1.Height - 680
WebBrowser1.Height = Form1.Height - 1120
Combo1.Width = Form1.Width - 3630
Command1.Left = Combo1.Width + 100
Command4.Left = Command1.Left + 970
Command2.Left = Command4.Left + 830
Command3.Left = Command2.Left + 810
End If
End Sub
Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
Text1.Text = Text
End Sub
Private Sub WebBrowser1_TitleChange(ByVal Text As String)
Form1.Caption = "成都一三五星实业有限公司WEB浏览器 ---" + " " + Text + " --- 该程序由 范毅 开发完成,意在保护电脑"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -