Changing Font Color in text strings

You can talk about VB programming here

Changing Font Color in text strings

Postby intercepter_3 » Thu Apr 06, 2006 2:27 am


Hey dudes,

I got a question. I need to make some color changes to my text strings in my bot.

Oh yea, the app is at http://palapps.leinc.net
I didnt think anyone would be too interested cuz its a bible bot. But check it out of you want.

Anyway, I need to make sub strings different colors. Some are fixed, and some are varable length.

What I wanna know is, how can I have a few words 1 color and some more words another color.

What I am doing is using a Richtextbox that really doesnt exist on the form. I just create the control at load time and use and reuse it to send text to the room.

Like this:
Code: Select all
RTB5 = "Some text" & text1.text & "Some more text"

I also use
Code: Select all
RTB5.SelLength = Len(RTB5.Text)

and then change the color for all the text. What I wanna know is how to change the seperate snippets.

Anyone got any suggestions?

intercepter_3
intercepter_3
imFiles Newbie
imFiles Newbie
 
Posts: 23
Joined: Sat Feb 11, 2006 3:02 am

Postby BattleStar-Galactica » Thu Apr 06, 2006 3:44 am

check this post >>> http://www.locohacker.net/paltalk/paltalk-greeter-2006-source-code-vt1392.html
loco has done a text fader for his greeter and it's very cool
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide


Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

cron