Results 1 to 4 of 4

Thread: RTF Textbox find and replace dialog

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    RTF Textbox find and replace dialog

    To use, put the following in the RTF textbox keydown sub:-

    VB Code:
    1. Private Sub rtfText_KeyDown(KeyCode As Integer, Shift As Integer)
    2.  
    3. If Shift And 2 Then
    4.    If KeyCode = vbKeyF Then
    5.         Call FindReplaceMain.ShowFindDialog(rtftext)
    6.     ElseIf KeyCode = vbKeyH Then
    7.         Call FindReplaceMain.ShowReplaceDialog(rtftext)
    8.     End If
    9. End If
    10.  
    11. End Sub
    Last edited by Merrion; Nov 4th, 2009 at 04:01 PM.

  2. #2
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    Re: RTF Textbox find and replace dialog

    Many i know if this is to use find and replace in any application or ?

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    Re: RTF Textbox find and replace dialog

    No - only within an RTF textbox on a VB form.

  4. #4
    Junior Member
    Join Date
    May 2006
    Posts
    28

    Talking Re: RTF Textbox find and replace dialog

    Very nice and useful codes, many thanks to you~~~~

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width