📄 frmfind.frm
字号:
VERSION 5.00
Begin VB.Form frmFind
BorderStyle = 3 'Fixed Dialog
Caption = "查找"
ClientHeight = 1845
ClientLeft = 45
ClientTop = 330
ClientWidth = 5430
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1845
ScaleWidth = 5430
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取消"
Height = 495
Left = 3840
TabIndex = 2
Top = 840
Width = 1455
End
Begin VB.CommandButton cmdFind
Caption = "查找"
Default = -1 'True
Height = 495
Left = 3840
TabIndex = 1
Top = 120
Width = 1455
End
Begin VB.TextBox txtFind
Height = 375
Left = 120
TabIndex = 0
Top = 120
Width = 3495
End
End
Attribute VB_Name = "frmFind"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
Me.Hide
End Sub
Private Sub cmdFind_Click()
If txtFind.Text <> "" Then
MDIForm1.ActiveForm.FindStr = txtFind.Text
MDIForm1.FindStrRTF MDIForm1.ActiveForm.RichTextBox1
Me.Hide
Else '用户没有在文本框中输入任何文字
Beep
txtFind.SetFocus
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -