|
-
Oct 20th, 2005, 11:19 AM
#1
Thread Starter
Addicted Member
Rich Text Box
Can somebody show me using two different colors in a rich textbox. For example I would like the ouput in the textbox look like this:
This is red
This is green
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Oct 20th, 2005, 12:11 PM
#2
Re: Rich Text Box
Are there specific, consistent sentences/phrase that you would like to change to red and green?
-
Oct 20th, 2005, 12:20 PM
#3
Re: Rich Text Box
Take a look at this post and the The Project
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Oct 20th, 2005, 12:21 PM
#4
Re: Rich Text Box
VB Code:
With RTB
.Text = ""
'add red text
.SelColor = vbRed
.SelText = "This is Red" & vbCrLf
'add green text
.SelColor = vbGreen
.SelText = "This is green" & vbCrLf
End With
-
Oct 20th, 2005, 01:50 PM
#5
Thread Starter
Addicted Member
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Oct 20th, 2005, 01:54 PM
#6
Thread Starter
Addicted Member
Re: Rich Text Box
Actually Hack, althought it is not what I was aking for, I'd like to learn how to change a specific part in the RTB(and also how to change the color), while the following sentences are constant and unknown.
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Oct 20th, 2005, 06:36 PM
#7
Re: Rich Text Box
Is this another question?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|