Click here to Skip to main content
15,897,360 members
Home / Discussions / C#
   

C#

 
AnswerRe: byte[] ? Pin
Dave Kreskowiak21-Apr-05 10:13
mveDave Kreskowiak21-Apr-05 10:13 
GeneralRe: byte[] ? Pin
Snowjim21-Apr-05 11:25
Snowjim21-Apr-05 11:25 
Generalstarting and stopping processes Pin
Mridang Agarwalla21-Apr-05 7:29
Mridang Agarwalla21-Apr-05 7:29 
GeneralRe: starting and stopping processes Pin
Dave Kreskowiak21-Apr-05 10:06
mveDave Kreskowiak21-Apr-05 10:06 
GeneralRe: starting and stopping processes Pin
Polis Pilavas22-Apr-05 10:13
Polis Pilavas22-Apr-05 10:13 
Generaldetecting net connection Pin
Mridang Agarwalla21-Apr-05 7:18
Mridang Agarwalla21-Apr-05 7:18 
GeneralRe: detecting net connection Pin
Dave Kreskowiak21-Apr-05 10:02
mveDave Kreskowiak21-Apr-05 10:02 
GeneralRe: detecting net connection Pin
Mridang Agarwalla21-Apr-05 18:13
Mridang Agarwalla21-Apr-05 18:13 
GeneralRe: detecting net connection Pin
tawammar22-Apr-05 0:27
tawammar22-Apr-05 0:27 
GeneralRe: detecting net connection Pin
Polis Pilavas22-Apr-05 10:26
Polis Pilavas22-Apr-05 10:26 
GeneralRe: detecting net connection Pin
tawammar23-Apr-05 2:27
tawammar23-Apr-05 2:27 
GeneralRe: detecting net connection Pin
tawammar23-Apr-05 6:09
tawammar23-Apr-05 6:09 
GeneralRe: detecting net connection Pin
Polis Pilavas23-Apr-05 8:22
Polis Pilavas23-Apr-05 8:22 
GeneralRe: detecting net connection Pin
tawammar23-Apr-05 10:16
tawammar23-Apr-05 10:16 
GeneralRe: detecting net connection Pin
Polis Pilavas23-Apr-05 10:21
Polis Pilavas23-Apr-05 10:21 
GeneralRe: detecting net connection Pin
tawammar25-Apr-05 13:54
tawammar25-Apr-05 13:54 
Generalfaster than: richTextBox1.Select(78,65);richTextBox1.SelectionColor= Color.Red; Pin
ektoras21-Apr-05 7:04
ektoras21-Apr-05 7:04 
GeneralRe: faster than: richTextBox1.Select(78,65);richTextBox1.SelectionColor= Color.Red; Pin
Dave Kreskowiak21-Apr-05 9:57
mveDave Kreskowiak21-Apr-05 9:57 
GeneralRe: faster than: richTextBox1.Select(78,65);richTextBox1.SelectionColor= Color.Red; Pin
ektoras21-Apr-05 11:31
ektoras21-Apr-05 11:31 
GeneralRe: faster than: richTextBox1.Select(78,65);richTextBox1.SelectionColor= Color.Red; Pin
Dave Kreskowiak21-Apr-05 12:01
mveDave Kreskowiak21-Apr-05 12:01 
It can't be done using pointers...

All RTF formatting is done in-line with the text, kind of like HTML tags. In order for you to change a section of text to a different format, the RTF stream holding all the text and formating information must be rewritten. This means copying everything from the beginning of the RTF stream to the point where you are making your changes, appending the new formatting codes to the copy, append the segment of text you're changing, appending any closing formatting codes that are required, then, finally, appending the remaining original RTF stream.

You can't do it using pointers because you have to rewrite the entire RTF stream anyway so it's in one contiguous stream of data.

It sounds like, because of performance considerations, that an RTF box wasn't a good choice to fulfill your requirements.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: faster than: richTextBox1.Select(78,65);richTextBox1.SelectionColor= Color.Red; Pin
leppie21-Apr-05 19:53
leppie21-Apr-05 19:53 
GeneralRe: faster than: richTextBox1.Select(78,65);richTextBox1.SelectionColor= Color.Red; Pin
leppie21-Apr-05 19:51
leppie21-Apr-05 19:51 
GeneralProblem with Socket.Connect() in .Net ActiveX App Pin
Hawk33721-Apr-05 4:07
Hawk33721-Apr-05 4:07 
QuestionIs this component thread safe? Pin
pankazmittal21-Apr-05 3:56
pankazmittal21-Apr-05 3:56 
AnswerRe: Is this component thread safe? Pin
S. Senthil Kumar21-Apr-05 5:11
S. Senthil Kumar21-Apr-05 5:11 

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.