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

📄 frmhickhttp.frm

📁 网吧的所有经营活动都能操作(包括时间管理、客户机管理、食品出售等)
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmHickHttp 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "访问限制"
   ClientHeight    =   3990
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5700
   Icon            =   "frmHickHttp.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3990
   ScaleWidth      =   5700
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "删除"
      Height          =   375
      Left            =   4680
      TabIndex        =   4
      Top             =   120
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "添加"
      Height          =   375
      Left            =   3600
      TabIndex        =   3
      Top             =   120
      Width           =   975
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   120
      TabIndex        =   2
      Top             =   120
      Width           =   3375
   End
   Begin VB.ListBox List1 
      Height          =   3120
      Left            =   0
      TabIndex        =   0
      Top             =   840
      Width           =   5655
   End
   Begin VB.Label Label1 
      Caption         =   "含有下列内容的网站不可访问:"
      Height          =   255
      Left            =   0
      TabIndex        =   1
      Top             =   600
      Width           =   2535
   End
End
Attribute VB_Name = "frmHickHttp"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error Resume Next
With frmMain.Data11.Recordset
 .AddNew
 .Fields("网站") = Text1.Text
 .Update
Form_Load
End With
End Sub

Private Sub Command2_Click()
On Error Resume Next
With frmMain.Data11.Recordset
 .MoveFirst
 .Move List1.ItemData(List1.ListIndex)
 .Delete
Form_Load
End With
End Sub

Private Sub Form_Load()
On Error Resume Next
List1.Clear
With frmMain.Data11.Recordset
 .MoveFirst
 For i = 1 To .RecordCount
  List1.AddItem .Fields("网站")
  List1.ItemData(List1.NewIndex) = .AbsolutePosition

  .MoveNext
 Next i

End With
End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
On Error Resume Next
Dim aindex As Integer
For i = 0 To frmMain.Winsock1.Count - 1
aindex = i
frmMain.SetHickHttp aindex
Next i
End Sub

⌨️ 快捷键说明

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