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

📄 gform1.frm

📁 校园网络计费程序 简单的数据处理 简单的计费程序
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "Richtx32.ocx"
Begin VB.Form Form1 
   AutoRedraw      =   -1  'True
   Caption         =   "详细日志"
   ClientHeight    =   8205
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   10305
   LinkTopic       =   "Form1"
   ScaleHeight     =   8205
   ScaleWidth      =   10305
   StartUpPosition =   1  '所有者中心
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   "H:\chen.mdb"
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   285
      Left            =   4560
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "user"
      Top             =   6960
      Visible         =   0   'False
      Width           =   1215
   End
   Begin VB.CommandButton Command3 
      Caption         =   "载入数据"
      Height          =   495
      Left            =   4560
      TabIndex        =   13
      Top             =   6120
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "关闭"
      Height          =   495
      Left            =   7560
      TabIndex        =   12
      Top             =   6120
      Width           =   1215
   End
   Begin RichTextLib.RichTextBox RichTextBox1 
      Height          =   5535
      Left            =   4080
      TabIndex        =   11
      Top             =   360
      Width           =   5655
      _ExtentX        =   9975
      _ExtentY        =   9763
      _Version        =   393217
      Enabled         =   -1  'True
      TextRTF         =   $"gForm1.frx":0000
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   840
      Top             =   6120
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton Command1 
      Caption         =   "日志"
      Height          =   495
      Left            =   1800
      TabIndex        =   10
      Top             =   6120
      Width           =   1215
   End
   Begin VB.TextBox Text5 
      DataField       =   "ip"
      DataSource      =   "Data1"
      Height          =   495
      Left            =   2160
      TabIndex        =   9
      Top             =   4920
      Width           =   1215
   End
   Begin VB.TextBox Text4 
      DataField       =   "状态"
      DataSource      =   "Data1"
      Height          =   495
      Left            =   2160
      TabIndex        =   8
      Top             =   3840
      Width           =   1215
   End
   Begin VB.TextBox Text3 
      DataField       =   "部门"
      DataSource      =   "Data1"
      Height          =   495
      Left            =   2160
      TabIndex        =   7
      Top             =   2520
      Width           =   1215
   End
   Begin VB.TextBox Text2 
      DataField       =   "userid"
      DataSource      =   "Data1"
      Height          =   495
      Left            =   2160
      TabIndex        =   6
      Top             =   1320
      Width           =   1215
   End
   Begin VB.TextBox Text1 
      DataField       =   "name"
      DataSource      =   "Data1"
      Height          =   495
      Left            =   2160
      TabIndex        =   5
      Top             =   240
      Width           =   1215
   End
   Begin VB.Label Label5 
      Caption         =   "ip"
      Height          =   375
      Left            =   360
      TabIndex        =   4
      Top             =   4920
      Width           =   735
   End
   Begin VB.Label Label4 
      Caption         =   "状态"
      Height          =   495
      Left            =   360
      TabIndex        =   3
      Top             =   3720
      Width           =   735
   End
   Begin VB.Label Label3 
      Caption         =   "部门"
      Height          =   495
      Left            =   360
      TabIndex        =   2
      Top             =   2520
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "id"
      Height          =   495
      Left            =   360
      TabIndex        =   1
      Top             =   1320
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "name"
      Height          =   375
      Left            =   360
      TabIndex        =   0
      Top             =   240
      Width           =   855
   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()
Dim FileStr As String
Dim FileName As String
Dim TempStr As String

FileName = ""
CommonDialog1.Filter = "Text Files (*.TXT)|*.txt|ALL_Files (*.*)|*.*"
CommonDialog1.Flags = &H4
CommonDialog1.ShowOpen
If CommonDialog1.FileName = "" Then Exit Sub
'打开文件
Open CommonDialog1.FileName For Input As #1
FileStr = ""
   Do Until EOF(1)
   Line Input #1, TempStr
   FileStr = FileStr & TempStr & Chr$(13) & Chr$(10)
   Loop
   Close #1
   Form1.Caption = CommonDialog1.FileTitle
   RichTextBox1.Text = ""
   RichTextBox1.Text = FileStr
   FileName = CommonDialog1.FileName
  
End Sub

Private Sub Command2_Click()
MDIForm1.Show
End Sub



Private Sub Label6_Click()

End Sub

Private Sub Form_Initialize()
On Error Resume Next
Dim strapp As String
strapp = App.Path
If Right(strapp, 1) <> "\" Then
strapp = strapp + "\"
End If

strapp = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" & strapp & "\chen.mdb"
Adodc1.ConnectionString = strapp
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 用户流量"
Adodc1.Refresh
End Sub

⌨️ 快捷键说明

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