📄 frmrizhi.frm
字号:
VERSION 5.00
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Begin VB.Form Frmrizhi
Caption = "日志浏览"
ClientHeight = 6615
ClientLeft = 165
ClientTop = 735
ClientWidth = 6270
Icon = "Frmrizhi.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 6615
ScaleWidth = 6270
StartUpPosition = 3 '窗口缺省
Begin RichTextLib.RichTextBox RichTextBox1
Height = 6255
Left = 120
TabIndex = 0
Top = 240
Width = 6015
_ExtentX = 10610
_ExtentY = 11033
_Version = 393217
ScrollBars = 3
TextRTF = $"Frmrizhi.frx":0CCA
End
Begin VB.Menu mnu_delrizhi
Caption = "清空日志记录"
End
End
Attribute VB_Name = "Frmrizhi"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
CenterForm Me
RichTextBox1.FileName = App.Path + "\backup.log"
End Sub
Private Sub mnu_delrizhi_Click()
Dim inttmp As Integer
inttmp = MsgBox("确实要删除这些日志吗?", vbOKCancel + vbDefaultButton1 + vbQuestion, Me.Caption)
If inttmp = 1 Then
End If
Open App.Path + "\backup.log" For Output As #1
Close #1
RichTextBox1.FileName = App.Path + "\backup.log"
RichTextBox1.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -