Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
GeneralGuide, idea about interacting with remote SQL Pin
tongc17-Jul-02 4:34
tongc17-Jul-02 4:34 
GeneralRe: Guide, idea about interacting with remote SQL Pin
Michael P Butler17-Jul-02 5:10
Michael P Butler17-Jul-02 5:10 
GeneralRe: Guide, idea about interacting with remote SQL Pin
Nathan Blomquist17-Jul-02 6:19
Nathan Blomquist17-Jul-02 6:19 
GeneralProblems with NUnit Pin
jparsons17-Jul-02 3:57
jparsons17-Jul-02 3:57 
Generalapplication server Pin
Anoop16-Jul-02 23:42
Anoop16-Jul-02 23:42 
GeneralRe: application server Pin
SimonS18-Jul-02 0:36
SimonS18-Jul-02 0:36 
GeneralNice :) Pin
leppie16-Jul-02 22:42
leppie16-Jul-02 22:42 
GeneralFormatting text in RichTextBox Pin
leppie16-Jul-02 21:45
leppie16-Jul-02 21:45 
Hi all,

How would one change certain text's formatting inside a RichTextBox programmatically?

I have gotten quite far with this for the following few exceptions:

- Everything is OK until 2 styles overlap (eg. bold and underline). Thus, I need to tackle every char on its own, but this is a no-no as it is too slow ( in my attempted implementation I had to do a single pass for every style Frown | :( )

- Every other "road" I take seems to run into even more preformance issues even before results can be seen.

From what I can see, you have to ways to do this:

1. Format text on the fly (as it gets appended) char by char.

-or-

2. Append all text, then apply formatting on a char by char basis.

Both of these have preformance issues. Is there a way of delaying the invalidation of a RichTextBox and calling it only once all formatting has been applied? Perhaps someone can help me with this. If you need more info, please ask, I'm not so sure if the question is as clear as it should be. Smile | :)

Thanking all in advance.

Cheers


READ MSDN
GeneralRe: Formatting text in RichTextBox Pin
leppie18-Jul-02 3:47
leppie18-Jul-02 3:47 
Generalstring vs. String; (string) casting vs. ToString() Pin
yaaang16-Jul-02 21:20
yaaang16-Jul-02 21:20 
GeneralRe: string vs. String; (string) casting vs. ToString() Pin
leppie16-Jul-02 22:01
leppie16-Jul-02 22:01 
GeneralRe: string vs. String; (string) casting vs. ToString() Pin
jparsons17-Jul-02 3:51
jparsons17-Jul-02 3:51 
GeneralRe: string vs. String; (string) casting vs. ToString() Pin
Mazdak17-Jul-02 9:17
Mazdak17-Jul-02 9:17 
GeneralFile Verifying Pin
Nnamdi Onyeyiri16-Jul-02 21:16
Nnamdi Onyeyiri16-Jul-02 21:16 
GeneralRe: File Verifying Pin
leppie16-Jul-02 22:32
leppie16-Jul-02 22:32 
GeneralRe: File Verifying Pin
Nnamdi Onyeyiri17-Jul-02 0:10
Nnamdi Onyeyiri17-Jul-02 0:10 
GeneralRe: File Verifying Pin
leppie17-Jul-02 0:45
leppie17-Jul-02 0:45 
GeneralRe: File Verifying Pin
Nnamdi Onyeyiri17-Jul-02 0:53
Nnamdi Onyeyiri17-Jul-02 0:53 
GeneralRe: File Verifying Pin
leppie17-Jul-02 1:06
leppie17-Jul-02 1:06 
GeneralRe: File Verifying Pin
Nnamdi Onyeyiri17-Jul-02 2:01
Nnamdi Onyeyiri17-Jul-02 2:01 
GeneralRe: File Verifying Pin
leppie17-Jul-02 2:32
leppie17-Jul-02 2:32 
GeneralRe: File Verifying Pin
Nnamdi Onyeyiri17-Jul-02 2:34
Nnamdi Onyeyiri17-Jul-02 2:34 
GeneralRe: File Verifying Pin
leppie17-Jul-02 3:19
leppie17-Jul-02 3:19 
GeneralRe: File Verifying Pin
Nnamdi Onyeyiri17-Jul-02 4:02
Nnamdi Onyeyiri17-Jul-02 4:02 
GeneralRe: File Verifying Pin
leppie17-Jul-02 10:20
leppie17-Jul-02 10:20 

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.