|
-
February 14th, 2009, 12:23 AM
#5
Re: Appending colored text to a richtextbox?
OMG, why doesnt this work, please help me.
Dictionary_RTB(sender).AppendText(Dictionary_Output(sender));
string tmp0 = Dictionary_Output(sender);
// This text formatting code is currently under testing. IT DOES NOT WORK.
Dictionary_RTB(sender).SelectionStart = Dictionary_RTB(sender).GetFirstCharIndexOfCurrentLine();
int tmp = Dictionary_RTB(sender).SelectionStart;
Debug.Print(tmp); <<<<<< BREAKPOINT HERE!!!
tmp0 = "Microsoft Windows [Version 6.0.6001]"
tmp = 37
this is the FIRST time that this code is hit when I run my program. Prior to that, the RTB text is empty.
NOOOOO! tmp should = 1 or 0 ..... but not 37!!!!
PLEASE, WHY?
Last edited by Traps; February 14th, 2009 at 12:26 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|