Click here to Skip to main content
15,914,447 members
Home / Discussions / C#
   

C#

 
GeneralRe: Application.Run() Pin
Colin Angus Mackay28-Apr-08 4:07
Colin Angus Mackay28-Apr-08 4:07 
GeneralProject post build events Pin
Razvan Dimescu28-Apr-08 2:26
Razvan Dimescu28-Apr-08 2:26 
QuestionText parser Pin
solutionsville28-Apr-08 2:23
solutionsville28-Apr-08 2:23 
GeneralRe: Text parser Pin
carbon_golem28-Apr-08 3:31
carbon_golem28-Apr-08 3:31 
AnswerRe: Text parser Pin
solutionsville28-Apr-08 3:51
solutionsville28-Apr-08 3:51 
GeneralRe: Text parser Pin
carbon_golem28-Apr-08 4:06
carbon_golem28-Apr-08 4:06 
AnswerRe: Text parser Pin
solutionsville28-Apr-08 4:25
solutionsville28-Apr-08 4:25 
GeneralRe: Text parser Pin
carbon_golem28-Apr-08 5:06
carbon_golem28-Apr-08 5:06 
Ok, you can do a very short mod to your existing code to get you in the direction. Use the .Lines property on the rich text box to get the lines array from it, Then do a foreach on the lines to go through them. If I remember right the colorization is done by character index, so generating that number would be a matter of accumulating the length of the lines properly.
int total = 0;
foreach(String trans in rtb.Lines){
    //single transmission in trans
    total += s.Length;
    ColorizationInfo temp = new ColorizationInfo(trans);
    Colorize(rtbDoc, temp, total); // colors a line
}

Do you thing something like this would work? Of course I didn't go through the parsing like you did, but you get the main idea here.

Scott P

"Run for your life from any man who tells you that money is evil. That sentence is the leper's bell of an approaching looter." --Ayn Rand

AnswerRe: Text parser Pin
solutionsville28-Apr-08 6:02
solutionsville28-Apr-08 6:02 
AnswerRe: Text parser Pin
solutionsville28-Apr-08 8:02
solutionsville28-Apr-08 8:02 
QuestionGet username of a running process Pin
I'm a member...28-Apr-08 1:55
I'm a member...28-Apr-08 1:55 
GeneralRe: Get username of a running process Pin
Anthony Mushrow28-Apr-08 2:06
professionalAnthony Mushrow28-Apr-08 2:06 
QuestionNeed help with scheduling system Pin
Twyce28-Apr-08 1:39
Twyce28-Apr-08 1:39 
GeneralRe: Need help with scheduling system Pin
Simon P Stevens28-Apr-08 2:01
Simon P Stevens28-Apr-08 2:01 
GeneralRe: Need help with scheduling system Pin
Pete O'Hanlon28-Apr-08 2:05
mvePete O'Hanlon28-Apr-08 2:05 
Questionhow to bind or attach message digest to word document Pin
Sunix.Fu28-Apr-08 1:26
Sunix.Fu28-Apr-08 1:26 
QuestionHow to maintain graphics Pin
baranils28-Apr-08 0:58
baranils28-Apr-08 0:58 
AnswerRe: How to maintain graphics Pin
Pete O'Hanlon28-Apr-08 1:28
mvePete O'Hanlon28-Apr-08 1:28 
GeneralRe: How to maintain graphics Pin
baranils28-Apr-08 1:38
baranils28-Apr-08 1:38 
GeneralNewbie - Unable to cast object of type... Pin
aberbotimue28-Apr-08 0:40
aberbotimue28-Apr-08 0:40 
GeneralRe: Newbie - Unable to cast object of type... Pin
Anthony Mushrow28-Apr-08 0:53
professionalAnthony Mushrow28-Apr-08 0:53 
GeneralRe: Newbie - Unable to cast object of type... Pin
aberbotimue28-Apr-08 1:16
aberbotimue28-Apr-08 1:16 
GeneralRe: Newbie - Unable to cast object of type... Pin
Anthony Mushrow28-Apr-08 2:12
professionalAnthony Mushrow28-Apr-08 2:12 
GeneralRe: Newbie - Unable to cast object of type... Pin
J4amieC28-Apr-08 0:54
J4amieC28-Apr-08 0:54 
GeneralRe: Newbie - Unable to cast object of type... Pin
aberbotimue28-Apr-08 1:14
aberbotimue28-Apr-08 1:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.