Find and Replace dialog for RTFTextbox

Merrion
02-26-2004, 05:03 AM
To use from a RTFTextbox put the following in the KeyDown...


Private Sub rtfText_KeyDown(KeyCode As Integer, Shift As Integer)

If Shift And 2 Then
If KeyCode = vbKeyF Then
Call FindReplaceMain.ShowFindDialog(rtftext)
ElseIf KeyCode = vbKeyH Then
Call FindReplaceMain.ShowReplaceDialog(rtftext)
End If
End If

End Sub

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum