Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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...

  • *Experts*
Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...