Click here to Skip to main content
16,008,490 members
Home / Discussions / C#
   

C#

 
GeneralRe: Fonts and TreeViews Pin
Identity Undisclosed27-Dec-04 19:53
Identity Undisclosed27-Dec-04 19:53 
GeneralRe: Fonts and TreeViews Pin
Beringer27-Dec-04 21:16
Beringer27-Dec-04 21:16 
GeneralRe: Fonts and TreeViews Pin
Identity Undisclosed27-Dec-04 22:44
Identity Undisclosed27-Dec-04 22:44 
GeneralRe: Fonts and TreeViews Pin
Beringer28-Dec-04 3:56
Beringer28-Dec-04 3:56 
Generalimagelist problem Pin
montu337727-Dec-04 17:50
montu337727-Dec-04 17:50 
GeneralRe: imagelist problem Pin
Heath Stewart27-Dec-04 20:47
protectorHeath Stewart27-Dec-04 20:47 
Generaldilema with strings and richtextbox Pin
Tyrus18227-Dec-04 16:46
Tyrus18227-Dec-04 16:46 
GeneralRe: dilema with strings and richtextbox Pin
Heath Stewart27-Dec-04 20:34
protectorHeath Stewart27-Dec-04 20:34 
First of all understand that the Text property is merely the plain-text version of what you see; it encodes almost no formatting.

That beind said, what characters are you trying to eliminate? Are you assuming single-byte characters or are you using the appropriate classes in the System.Text namespace to remove characters?

Also, for performance reasons you should be using the StringBuilder class if you're not already. Strings are immutable. Any operation you perform on a string requires a new string to be created and manipulated and the old string destroyed. Every time you simply add a single character this is done. Using a StringBuilder eliminates this problem. Use StringBuilder.ToString to get a string from the instance of the StringBuilder.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: dilema with strings and richtextbox Pin
Tyrus18228-Dec-04 8:39
Tyrus18228-Dec-04 8:39 
GeneralRe: dilema with strings and richtextbox Pin
Heath Stewart28-Dec-04 9:59
protectorHeath Stewart28-Dec-04 9:59 
GeneralRe: dilema with strings and richtextbox Pin
Tyrus18228-Dec-04 12:09
Tyrus18228-Dec-04 12:09 
GeneralRe: dilema with strings and richtextbox Pin
Heath Stewart28-Dec-04 12:16
protectorHeath Stewart28-Dec-04 12:16 
GeneralRe: dilema with strings and richtextbox Pin
Tyrus18228-Dec-04 12:26
Tyrus18228-Dec-04 12:26 
GeneralRe: dilema with strings and richtextbox Pin
Heath Stewart28-Dec-04 12:34
protectorHeath Stewart28-Dec-04 12:34 
GeneralRe: dilema with strings and richtextbox Pin
Tyrus18228-Dec-04 12:50
Tyrus18228-Dec-04 12:50 
GeneralRe: dilema with strings and richtextbox Pin
Tyrus18228-Dec-04 13:00
Tyrus18228-Dec-04 13:00 
GeneralperformanceCounter woes Pin
sween327-Dec-04 16:38
sween327-Dec-04 16:38 
GeneralDBAdapter.Fill(), datatype matching. Pin
zecodela27-Dec-04 15:45
zecodela27-Dec-04 15:45 
GeneralRe: DBAdapter.Fill(), datatype matching. Pin
sreejith ss nair27-Dec-04 18:37
sreejith ss nair27-Dec-04 18:37 
GeneralRe: DBAdapter.Fill(), datatype matching. Pin
Heath Stewart27-Dec-04 20:12
protectorHeath Stewart27-Dec-04 20:12 
GeneralRe: DBAdapter.Fill(), datatype matching. Pin
Heath Stewart27-Dec-04 20:20
protectorHeath Stewart27-Dec-04 20:20 
GeneralContainer Window for Minimized forms Pin
hybrid7927-Dec-04 14:25
hybrid7927-Dec-04 14:25 
GeneralRe: Container Window for Minimized forms Pin
Heath Stewart27-Dec-04 20:10
protectorHeath Stewart27-Dec-04 20:10 
QuestionHow to assosiate files to my program Pin
mikker_12327-Dec-04 12:00
mikker_12327-Dec-04 12:00 
AnswerRe: How to assosiate files to my program Pin
Heath Stewart27-Dec-04 20:01
protectorHeath Stewart27-Dec-04 20:01 

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.