How To Find and Highlight Text in the RichTextBox Control (154884)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q154884 SUMMARY
In many applications there is a function to search and highlight keywords
in a text window. The RichTextBox control in Visual Basic can be made
to provide this functionality, as shown in the sample code below.
REFERENCES
The Visual Basic Online Help and the Professional Features Manual in the
Custom Control Section, p.329-362.
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto KB154884 |
---|
|