📄 frmlog.frm
字号:
VERSION 5.00
Begin VB.Form frmLog
BackColor = &H0000C000&
BorderStyle = 0 'None
Caption = "日志管理"
ClientHeight = 4815
ClientLeft = 0
ClientTop = 0
ClientWidth = 5730
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 4815
ScaleWidth = 5730
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.ListBox List1
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 4020
ItemData = "frmLog.frx":0000
Left = 120
List = "frmLog.frx":0002
TabIndex = 4
Top = 600
Width = 4215
End
Begin VB.CommandButton Command4
Caption = "数据显示"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4560
TabIndex = 3
Top = 480
Width = 975
End
Begin VB.CommandButton Command3
Caption = "退出"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4560
TabIndex = 2
Top = 1920
Width = 975
End
Begin VB.CommandButton Command2
BackColor = &H00000000&
Caption = "删除"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4560
TabIndex = 1
Top = 1200
Width = 975
End
Begin VB.Label Label1
Caption = "日志记录"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1560
TabIndex = 0
Top = 120
Width = 1095
End
End
Attribute VB_Name = "frmLog"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim no As Integer
Private Sub Command2_Click()
no = List1.ListIndex
List1.RemoveItem no
End Sub
Private Sub Command3_Click()
frmLog.Hide
Unload frmLog
End Sub
Private Sub Command4_Click()
frmMain.Timer1.Enabled = False
List1.Clear
Open "temp.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, inputdata
List1.AddItem inputdata
Loop
Close #1
frmMain.Timer1.Enabled = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -