⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 brower.frm

📁 教务管理系统,用VB 完成,以SQL SERVER 2000作为后台数据库
💻 FRM
字号:
VERSION 5.00
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0"; "COMCTL32.OCX"
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
Begin VB.Form INTERNET 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Form1"
   ClientHeight    =   6510
   ClientLeft      =   45
   ClientTop       =   615
   ClientWidth     =   9480
   Icon            =   "BROWER.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6510
   ScaleWidth      =   9480
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   WindowState     =   2  'Maximized
   Begin ComctlLib.Toolbar ToolBar1 
      Align           =   1  'Align Top
      Height          =   540
      Left            =   0
      TabIndex        =   3
      Top             =   0
      Width           =   9480
      _ExtentX        =   16722
      _ExtentY        =   953
      ButtonWidth     =   820
      ButtonHeight    =   794
      Appearance      =   1
      ImageList       =   "imglist1"
      _Version        =   327682
      BeginProperty Buttons {0713E452-850A-101B-AFC0-4210102A8DA7} 
         NumButtons      =   7
         BeginProperty Button1 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Key             =   "Exit"
            Object.ToolTipText     =   "退出"
            Object.Tag             =   ""
            ImageIndex      =   7
         EndProperty
         BeginProperty Button2 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Key             =   "Back"
            Object.ToolTipText     =   "向后"
            Object.Tag             =   ""
            ImageIndex      =   1
         EndProperty
         BeginProperty Button3 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Key             =   "Forward"
            Object.ToolTipText     =   "向前"
            Object.Tag             =   ""
            ImageIndex      =   2
         EndProperty
         BeginProperty Button4 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Key             =   "Stop"
            Object.ToolTipText     =   "停止"
            Object.Tag             =   ""
            ImageIndex      =   3
         EndProperty
         BeginProperty Button5 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Key             =   "Refresh"
            Object.ToolTipText     =   "刷新"
            Object.Tag             =   ""
            ImageIndex      =   4
         EndProperty
         BeginProperty Button6 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Key             =   "Home"
            Object.ToolTipText     =   "归位"
            Object.Tag             =   ""
            ImageIndex      =   5
         EndProperty
         BeginProperty Button7 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Key             =   "Search"
            Object.ToolTipText     =   "搜索"
            Object.Tag             =   ""
            ImageIndex      =   6
         EndProperty
      EndProperty
      BorderStyle     =   1
   End
   Begin VB.ComboBox Combo1 
      ForeColor       =   &H00FF0000&
      Height          =   300
      Left            =   780
      TabIndex        =   2
      Text            =   "Combo1"
      Top             =   600
      Width           =   4635
   End
   Begin VB.Timer Timer1 
      Enabled         =   0   'False
      Interval        =   10
      Left            =   5790
      Top             =   690
   End
   Begin SHDocVwCtl.WebBrowser webbrowser1 
      Height          =   2775
      Left            =   30
      TabIndex        =   1
      Top             =   1110
      Width           =   6750
      ExtentX         =   11906
      ExtentY         =   4895
      ViewMode        =   1
      Offline         =   0
      Silent          =   0
      RegisterAsBrowser=   1
      RegisterAsDropTarget=   1
      AutoArrange     =   -1  'True
      NoClientEdge    =   -1  'True
      AlignLeft       =   0   'False
      ViewID          =   "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
      Location        =   ""
   End
   Begin VB.Line Line1 
      BorderColor     =   &H00000000&
      BorderWidth     =   2
      X1              =   30
      X2              =   4770
      Y1              =   1020
      Y2              =   1020
   End
   Begin ComctlLib.ImageList imglist1 
      Left            =   2730
      Top             =   2325
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   24
      ImageHeight     =   24
      MaskColor       =   12632256
      _Version        =   327682
      BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7} 
         NumListImages   =   7
         BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "BROWER.frx":030A
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "BROWER.frx":099C
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "BROWER.frx":102E
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "BROWER.frx":16C0
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "BROWER.frx":1D52
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "BROWER.frx":23E4
            Key             =   ""
         EndProperty
         BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "BROWER.frx":2A76
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin VB.Label lblAddress 
      Caption         =   "地址(&A):"
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   30
      TabIndex        =   0
      Tag             =   "&Address:"
      Top             =   630
      Width           =   765
   End
   Begin VB.Menu MNUFILE 
      Caption         =   "文件[&F]"
      Begin VB.Menu MNUEXIT 
         Caption         =   "退出[&X]"
      End
   End
End
Attribute VB_Name = "INTERNET"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public StartingAddress As String
Dim flag As Boolean
Private Sub Form_Load()
On Error Resume Next
Me.Show
Toolbar1.Refresh
Open App.Path + "\HELP\brow.ini" For Input As #2
'打开上次的WEB IP地址
Input #2, StartingAddress
Close #2
If Len(StartingAddress) > 0 Then
Combo1.Text = StartingAddress
Combo1.AddItem StartingAddress
webbrowser1.Navigate StartingAddress
Line1.X1 = 0
Line1.X2 = INTERNET.ScaleWidth
webbrowser1.Width = INTERNET.ScaleWidth - 200
webbrowser1.Height = INTERNET.ScaleHeight - 1800 - StatusBar1.Height
webbrowser1.Left = 30
webbrowser1.Top = 1110
End If
End Sub

Private Sub Form_Resize()
Line1.X1 = 0
Line1.X2 = INTERNET.ScaleWidth
webbrowser1.Width = INTERNET.ScaleWidth - 50
webbrowser1.Height = INTERNET.ScaleHeight - 1200

webbrowser1.Left = 30
webbrowser1.Top = 1110
End Sub

Private Sub MNUEXIT_Click()
Open App.Path + "\HELP\brow.ini" For Output As #2
Write #2, Combo1.Text
Close #2
Unload Me
End Sub

Private Sub webbrowser1_DownloadComplete()
On Error Resume Next
Me.Caption = webbrowser1.LocationName

End Sub


Private Sub combo1_Click()
If flag Then Exit Sub
Timer1.Enabled = True
webbrowser1.Navigate Combo1.Text
End Sub
Private Sub combo1_KeyPress(KeyAscii As Integer)
On Error Resume Next
If KeyAscii = vbKeyReturn Then
Combo1.AddItem Combo1.Text
combo1_Click
End If
End Sub

Private Sub Timer1_Timer()
If webbrowser1.Busy = False Then
Timer1.Enabled = False
Me.Caption = webbrowser1.LocationName
Else
Me.Caption = "Working..."
End If
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As Button)
On Error Resume Next
Timer1.Enabled = True
Select Case Button.Key
Case "Exit"
Open App.Path + "\HELP\brow.ini" For Output As #2
'打开上次的WEB IP地址
Write #2, Combo1.Text
Close #2
Unload Me
Case "Back"
webbrowser1.GoBack
Case "Forward"
webbrowser1.GoForward
Case "Refresh"
webbrowser1.Refresh
Case "Home"
webbrowser1.Go Home
Case "Search"
webbrowser1.GoSearch
Case "Open"
CommonDialog1.ShowOpen
Combo1.Text = CommonDialog1.FileName
Case "Stop"
Timer1.Enabled = False
MousePointer = 0
webbrowser1.Stop
Me.Caption = webbrowser1.LocationName
End Select
End Sub

Private Sub webbrowser1_NavigateComplete(ByVal URL As String)
Dim I As Integer
Dim bFound As Boolean
Me.Caption = webbrowser1.LocationName
For I = 0 To Combo1.ListCount - 1
If Combo1.List(I) = webbrowser1.LocationURL Then
bFound = True
Exit For
End If
Next I
flag = True
If bFound Then
Combo1.RemoveItem I
End If
Combo1.AddItem webbrowser1.LocationURL, 0
Combo1.ListIndex = 0
MousePointer = 0
webbrowser1.Navigate Combo1.Text
'StatusBar1.Panels(1).Text = "当前页面" + Combo1.Text
flag = False
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -