⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmfr.frm

📁 vb学习
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmFR 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "替换"
   ClientHeight    =   600
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6930
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   600
   ScaleWidth      =   6930
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取消"
      Height          =   375
      Left            =   5280
      TabIndex        =   3
      Top             =   120
      Width           =   1455
   End
   Begin VB.CommandButton cmdAll 
      Caption         =   "全部替换[&A]"
      Height          =   375
      Left            =   3600
      TabIndex        =   2
      Top             =   120
      Width           =   1455
   End
   Begin VB.CommandButton cmdFindNext 
      Caption         =   "查找下一个[&F]"
      Height          =   375
      Left            =   1920
      TabIndex        =   1
      Top             =   120
      Width           =   1455
   End
   Begin VB.CommandButton cmdReplace 
      Caption         =   "替换[&R]"
      Default         =   -1  'True
      Height          =   375
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   1575
   End
End
Attribute VB_Name = "frmFR"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdAll_Click()
    Me.Hide
    frmReplace.ReplaceAll
End Sub

Private Sub cmdCancel_Click()
    Me.Hide
End Sub

Private Sub cmdFindNext_Click()
    MDIForm1.FindStrRTF MDIForm1.ActiveForm.RichTextBox1
End Sub

Private Sub cmdReplace_Click()
    With MDIForm1.ActiveForm.RichTextBox1
        If .SelText <> "" Then
            .SelText = strReplace
            MDIForm1.FindStrRTF MDIForm1.ActiveForm.RichTextBox1
        End If
    End With
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -