Results 1 to 4 of 4

Thread: RTF Textbox find and replace dialog

Threaded View

  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.

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