📄 frm_rz.frm
字号:
VERSION 5.00
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Begin VB.Form frm_rz
Caption = "查看日志"
ClientHeight = 5205
ClientLeft = 60
ClientTop = 345
ClientWidth = 7530
LinkTopic = "Form1"
ScaleHeight = 5205
ScaleWidth = 7530
StartUpPosition = 3 '窗口缺省
Begin RichTextLib.RichTextBox RichTextBox1
Height = 4560
Left = 90
TabIndex = 0
Top = 75
Width = 7005
_ExtentX = 12356
_ExtentY = 8043
_Version = 393217
ReadOnly = -1 'True
ScrollBars = 2
TextRTF = $"frm_rz.frx":0000
End
End
Attribute VB_Name = "frm_rz"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Dim Intext As String '定义一个变量,用于读取文件中的数据
' rtn = SetWindowPos(Me.hWnd, -1, 0, 0, 0, 0, 3) '运用API函数SetWindowPos,来实现使窗体置前的功能
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
'限定控件的位置
RichTextBox1.Left = 0
RichTextBox1.Top = 0
'读取文件中的日志信息
Open (App.Path & "\系统日志.ini") For Input As #1
Do While Not EOF(1)
Line Input #1, Intext
RichTextBox1.Text = RichTextBox1.Text + Intext + Chr(13) + Chr(10)
Loop
Close #1
End Sub
Private Sub Form_Resize() '使得控件大小随着窗体大小的改变而改变
RichTextBox1.Width = Me.Width - 80
RichTextBox1.Height = Me.Height - 360
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -