?? frm_rz.frm
字號(hào):
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 '定義一個(gè)變量,用于讀取文件中的數(shù)據(jù)
' rtn = SetWindowPos(Me.hWnd, -1, 0, 0, 0, 0, 3) '運(yùn)用API函數(shù)SetWindowPos,來(lái)實(shí)現(xiàn)使窗體置前的功能
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
'限定控件的位置
RichTextBox1.Left = 0
RichTextBox1.Top = 0
'讀取文件中的日志信息
Open (App.Path & "\系統(tǒng)日志.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
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -