VTBadfish Posted August 15, 2003 Posted August 15, 2003 Hey guys, I'm working with ansi color so certain recieved codes such as say [31m for example should prompt a change in color in my output. What I'm trying to do is have my rich text box switch to a new color when the code is hit and continue with this color until it hits another code to switch to a different color. I can't find a way to have a Rich Text Box allow me to dynamically change in this way; select seems an ill choice because I never know the length of the string thats going to be in a specific color and I can't figure out another way to do it. Thanks in advanced... Quote
*Experts* Volte Posted August 15, 2003 *Experts* Posted August 15, 2003 You do need to use the SelectXxxxxx properties -- You should use the RegEx class for doing something like this, since it allows extremely advanced string parsing. Search your MSDN for information on 'Regular Expressions' for more info. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.