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

📄 form9.frm

📁 根据MS Proxy的日志文件进行计费的程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form OutPutFmt 
   Caption         =   "Form1"
   ClientHeight    =   5835
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7545
   LinkTopic       =   "Form1"
   ScaleHeight     =   5835
   ScaleWidth      =   7545
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton CancelBtn 
      Caption         =   "取消"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   420
      Left            =   5550
      TabIndex        =   15
      Top             =   5040
      Width           =   1125
   End
   Begin VB.CommandButton OkBtn 
      Caption         =   "确定"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   3900
      TabIndex        =   14
      Top             =   5025
      Width           =   1335
   End
   Begin VB.TextBox ValueTxt 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   6
      Left            =   2475
      TabIndex        =   12
      Text            =   "Text1"
      Top             =   3720
      Width           =   4440
   End
   Begin VB.TextBox ValueTxt 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   5
      Left            =   2475
      TabIndex        =   10
      Text            =   "Text1"
      Top             =   3195
      Width           =   4440
   End
   Begin VB.TextBox ValueTxt 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   4
      Left            =   2475
      TabIndex        =   9
      Text            =   "Text1"
      Top             =   2655
      Width           =   4440
   End
   Begin VB.TextBox ValueTxt 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   3
      Left            =   2475
      TabIndex        =   8
      Text            =   "Text1"
      Top             =   2130
      Width           =   4440
   End
   Begin VB.TextBox ValueTxt 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   2
      Left            =   2475
      TabIndex        =   7
      Text            =   "Text1"
      Top             =   1605
      Width           =   4440
   End
   Begin VB.TextBox ValueTxt 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   1
      Left            =   2475
      TabIndex        =   6
      Text            =   "Text1"
      Top             =   1095
      Width           =   4440
   End
   Begin VB.TextBox ValueTxt 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   0
      Left            =   2475
      TabIndex        =   1
      Text            =   "Text1"
      Top             =   570
      Width           =   4440
   End
   Begin VB.Label KeyLabel 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   6
      Left            =   495
      TabIndex        =   13
      Top             =   3885
      Width           =   1455
   End
   Begin VB.Label KeyLabel 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   5
      Left            =   495
      TabIndex        =   11
      Top             =   3300
      Width           =   1455
   End
   Begin VB.Label KeyLabel 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   4
      Left            =   495
      TabIndex        =   5
      Top             =   2700
      Width           =   1455
   End
   Begin VB.Label KeyLabel 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   3
      Left            =   495
      TabIndex        =   4
      Top             =   2220
      Width           =   1455
   End
   Begin VB.Label KeyLabel 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   2
      Left            =   495
      TabIndex        =   3
      Top             =   1620
      Width           =   1455
   End
   Begin VB.Label KeyLabel 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   1
      Left            =   495
      TabIndex        =   2
      Top             =   1140
      Width           =   1455
   End
   Begin VB.Label KeyLabel 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   0
      Left            =   495
      TabIndex        =   0
      Top             =   660
      Width           =   1455
   End
End
Attribute VB_Name = "OutPutFmt"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub CancelBtn_Click()
Unload Me
End Sub

Private Sub Form_Load()
Dim MySettings As Variant, intSettings As Integer
Dim aaa As Integer
' Place some settings in the registry.
MySettings = GetAllSettings(appname:="wsm", Section:="System")
aaa = 0
If IsEmpty(MySettings) Then
    MsgBox "您尚未做过初始化操作,不能修改", vbOKOnly, "请注意"
Else
    For intSettings = LBound(MySettings, 1) To UBound(MySettings, 1)
        KeyLabel(aaa).Caption = MySettings(intSettings, 0)
        ValueTxt(aaa).Text = MySettings(intSettings, 1)
        aaa = aaa + 1
    Next intSettings
End If
'DeleteSetting "MyApp", "Sta"
End Sub

Private Sub OkBtn_Click()
Dim aaa As Integer
Dim MySettings As Variant, intSettings As Integer
aaa = 0
MySettings = GetAllSettings(appname:="wsm", Section:="System")
For intSettings = LBound(MySettings, 1) To UBound(MySettings, 1)
    SaveSetting appname:="wsm", Section:="system", _
            Key:=KeyLabel(aaa).Caption, setting:=ValueTxt(aaa).Text
    aaa = aaa + 1
Next intSettings
Unload Me
End Sub

⌨️ 快捷键说明

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