http://www.vb-helper.com/HowTo/srchbox.zip
Purpose
Make a simple search form for a RichTextBox.
Method
Use a second form that sets the controls SelStart and SelLength properties.
Unfortunately the RichTextBox does not show its selection unless its form is
active. The search frm sets the focus to this control after it finds the
target string.
This example makes the search form a child of the main form so it is always
on top of the main form.
Disclaimer
This example program is provided "as is" with no warranty of any kind. It is
intended for demonstration purposes only. In particular, it does no error
handling. You can use the example in any form, but please mention
www.vb-helper.com.
Downloads
In IE right-click and select 'Save Target As...' or in Netscape
right-click and select 'Save Link As...'
View Plain Text
Download Demo Project
Not Available