📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
BorderStyle = 3 'Fixed Dialog
Caption = "查找"
ClientHeight = 1275
ClientLeft = 870
ClientTop = 1620
ClientWidth = 4725
Icon = "Form2.frx":0000
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1275
ScaleWidth = 4725
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Comfindnext
BackColor = &H0000FFFF&
Caption = "查找下一个"
Height = 300
Left = 3600
MaskColor = &H0000FFFF&
TabIndex = 9
Top = 120
Width = 1095
End
Begin VB.CommandButton Comclose
Caption = "关闭"
Height = 300
Left = 3600
TabIndex = 8
Top = 960
Width = 1095
End
Begin VB.CommandButton commidnext
Caption = "替换下一个"
Height = 300
Left = 3600
TabIndex = 7
Top = 577
Width = 1095
End
Begin VB.OptionButton Option2
Caption = "下"
Height = 300
Left = 2880
TabIndex = 6
Top = 960
Width = 615
End
Begin VB.OptionButton Option1
Caption = "上"
Height = 300
Left = 2160
TabIndex = 5
Top = 960
Width = 615
End
Begin VB.TextBox Text2
Height = 375
Left = 720
TabIndex = 3
Top = 540
Width = 2895
End
Begin VB.CheckBox Chedx
Caption = "大小写"
Height = 255
Left = 1200
TabIndex = 2
Top = 960
Width = 855
End
Begin VB.TextBox Text1
Height = 390
Left = 720
TabIndex = 0
Top = 105
Width = 2895
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "替换为"
Height = 255
Left = 0
TabIndex = 4
Top = 600
Width = 735
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "查找内容"
ForeColor = &H00000000&
Height = 255
Left = 0
TabIndex = 1
Top = 173
Width = 735
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Comclose_Click()
findtext = Text1.Text
Unload Me
End Sub
Private Sub Comfindnext_Click()
dx = Chedx.Value
findtext = Text1.Text
FindIt
End Sub
Private Sub commidnext_Click()
tihuanIt
End Sub
Private Sub Form_Load()
Dim s As Long
s = SetWindowPos(Me.hwnd, -1, 0, 0, 320, 115, &H200)
If dx = 1 Then Chedx.Value = 1
If fx = 1 Then
Option2.Value = True
Else
Option1.Value = True
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
If Chedx.Value = 1 Then dx = 1
End Sub
Private Sub Option1_Click()
fx = 2
End Sub
Private Sub Option2_Click()
fx = 1
End Sub
Private Sub Text1_Change()
If Text1.Text <> "" Then Comfindnext.Enabled = True
gfristTime = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -