?? xmnotepadfind.frm
字號:
VERSION 5.00
Begin VB.Form Form3
Caption = "Find"
ClientHeight = 1290
ClientLeft = 60
ClientTop = 345
ClientWidth = 5085
LinkTopic = "Form3"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1290
ScaleWidth = 5085
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command2
Caption = "Cancel"
Height = 375
Left = 3840
TabIndex = 4
Top = 600
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "&Find Next"
Height = 375
Left = 3840
TabIndex = 3
Top = 120
Width = 1095
End
Begin VB.CheckBox Check1
Caption = "&Match Case"
Height = 195
Left = 120
TabIndex = 2
Top = 840
Width = 1335
End
Begin VB.TextBox Text1
Height = 285
Left = 120
TabIndex = 1
Top = 360
Width = 3615
End
Begin VB.Label Label1
Caption = "Find What:"
Height = 255
Left = 120
TabIndex = 0
Top = 120
Width = 1695
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
If Check1.Value = 1 Then
MatchCase = True
Else
MatchCase = False
End If
End Sub
Private Sub Command1_Click()
Dim ret As Integer
ret = frm
If MatchCase = True Then
Pos = InStr(Pos + 1, ChildForms(ret).Text1.Text, Text1.Text)
Else
Pos = InStr(Pos + 1, ChildForms(ret).Text1.Text, Text1.Text, vbTextCompare)
End If
If Pos <> 0 Then
ChildForms(ret).Text1.SelStart = Pos - 1
ChildForms(ret).Text1.SelLength = Len(Text1.Text)
Else
MsgBox "Cannot Find " & Chr$(34) & Text1.Text & Chr$(34)
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Pos = 0
If MatchCase = True Then Check1.Value = 1
End Sub
Private Sub Text1_Change()
SearchStr = Text1.Text
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -