📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "文件比较"
ClientHeight = 4992
ClientLeft = 48
ClientTop = 276
ClientWidth = 3672
LinkTopic = "Form1"
ScaleHeight = 4992
ScaleWidth = 3672
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command4
Caption = "退出程序"
Height = 372
Left = 480
TabIndex = 14
Top = 4440
Width = 2532
End
Begin VB.Frame Frame1
Caption = "内容差异"
Height = 2772
Left = 120
TabIndex = 7
Top = 1440
Width = 3372
Begin VB.ListBox List1
Height = 1968
Left = 120
TabIndex = 10
Top = 480
Width = 1812
End
Begin VB.ListBox List2
Height = 1968
Left = 2040
TabIndex = 9
Top = 480
Width = 492
End
Begin VB.ListBox List3
Height = 1968
Left = 2760
TabIndex = 8
Top = 480
Width = 492
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "位置偏移量"
Height = 192
Left = 120
TabIndex = 13
Top = 240
Width = 720
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "文件2"
Height = 192
Left = 2880
TabIndex = 12
Top = 240
Width = 372
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "文件1"
Height = 192
Left = 2040
TabIndex = 11
Top = 240
Width = 372
End
End
Begin VB.CommandButton Command3
Caption = "开始比较"
Height = 372
Left = 480
TabIndex = 4
Top = 960
Width = 2532
End
Begin VB.CommandButton Command2
Caption = "..."
Height = 252
Left = 3000
TabIndex = 3
Top = 600
Width = 372
End
Begin VB.CommandButton Command1
Caption = "..."
Height = 252
Left = 3000
TabIndex = 2
Top = 240
Width = 372
End
Begin VB.TextBox txtPatched
Height = 288
Left = 840
TabIndex = 1
Top = 600
Width = 2052
End
Begin VB.TextBox txtOriginal
Height = 288
Left = 840
TabIndex = 0
Top = 240
Width = 2052
End
Begin VB.Label Label5
Caption = "文件2:"
Height = 252
Left = 240
TabIndex = 6
Top = 600
Width = 732
End
Begin VB.Label Label4
Caption = "文件1:"
Height = 252
Left = 240
TabIndex = 5
Top = 240
Width = 732
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'This SourceCode shows you how to compare 2 files the
'fastest possible way in VB.
'
'
'greets
'
'Tom (tom@evilemail.com)
'***********************
Private Sub Command1_Click()
txtOriginal.Text = Open_File(Me.hWnd)
End Sub
Private Sub Command2_Click()
txtPatched.Text = Open_File(Me.hWnd)
End Sub
Private Sub Command3_Click()
ByteCompare txtOriginal.Text, txtPatched.Text, List1, List2, List3
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -