borderAndreaVB free resources for Visual Basic developersborder

AndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincani

AndreaVB Home | News Home | Forum Home | Downloads | Register | Search | PM | Profile

Previous Topic (Counting lines)Next Topic (smart menu) New Topic Post Reply
AndreaVB OnLine : VB General : Changing color of text
Poster Resource
lazlo
Level: Protégé

Registered: 14-01-2006
Posts: 8
icon Changing color of text

I hope I posted this question in the right topic.
I am a new user to Visual Basic 6 and I have a question that I cannot seem to find the answer.
In my program I have a form with a richtextbox.
And in this richTextBox is a paragraph of double-digit numbers.
My question is: how do I search the richTextBox and change the numbers that match, to a different color?

For example, if the richTextBox contained:

87 46 98 34 69 01 84 39 99
44 01 54 59 18 21 47 76 01
77 52 01 40 37 29 48 60 01

If I was searching for "01" How do I change the 01's in the box to a red color?

20-01-2006 at 11:14 PM
View Profile Send Email to User Show All Posts | Add Comment
lazlo
Level: Protégé

Registered: 14-01-2006
Posts: 8
icon Re: Changing color of text

Forget about answering my earlier post, I anwered my own question by doing a search for "highlight"
<< note to self... use the search button before asking a noobie question >>

20-01-2006 at 11:55 PM
View Profile Send Email to User Show All Posts | Add Comment
AndreaVB OnLine : VB General : Changing color of text
Previous Topic (Counting lines)Next Topic (smart menu)New Topic Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder