i was wondering if you can go multi colors in 1 line like in a "RTB" like this is my code
Text1.Text = Text1.Text & "<" & Username & "> " & TextSend.Text & vbCrLf
is there a way i can make that line multi colors?
Ditch the textbox and go with a RichTextBox. It's far easier, nearly every bnet bot for chatting uses it, so there's lots of example code.
yes i have made the move! :)
ok but how would i go about this "<username>"teal and me chat text white
rtbAdd "<" & Username & "> " & TextSend.Text & vbNewLine, vbTeal
hey what are the color codes for white / red / yellow or off hand you know ;)
Public Const vbBage = &H80000000
Public Const vbGrey = &H808080
Public Const vbTeal = &HFFFF00
Public Const vbDGreen = &H8000&
That's beige*
Also, these are the constants I have, they are in C++, but you should be able to translate them to VB fairly easily...
#define BLACK 0x00000000
#define BLUE 0x00FF0000
#define RED 0x000000FF
#define GREEN 0x0000FF00
#define WHITE 0x00FFFFFF
#define YELLOW 0x0000FFFF
#define LIGHTBLUE 0x00FFFF00
#define GRAY 0x00757575
#define DARKGREEN 0x00217721
Ex:
Public Constant RED &H000000FF
ah k i got my text box wokring but i want to change the color of connecting where do i put the color code in front of text? or behing plz show example wiht my text vBgreen is the color "Public Const vbGreen = &H8000&"
rtbAdd " [" & time & "]" & " Connecting " & "To Battle.Net Chat Server" & vbNewLine
Quote from: blinkdude on July 11, 2003, 04:31 PM
ah k i got my text box wokring but i want to change the color of connecting where do i put the color code in front of text? or behing plz show example wiht my text vBgreen is the color "Public Const vbGreen = &H8000&"
rtbAdd " [" & time & "]" & " Connecting " & "To Battle.Net Chat Server" & vbNewLine
or can you put multi-color is in like the " [" & time & "]" white and Connecting " & "To Battle.Net Chat Server" & vbNewLine green plz that would help alot i know how to make it all green just add the , vbgreen to then end but 2 colors i duno :/