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

C#

 
AnswerRe: Setting CollectionClass to Property - Custom Controls [modified] Pin
Martin#30-Jul-07 2:05
Martin#30-Jul-07 2:05 
GeneralRe: Setting CollectionClass to Property - Custom Controls Pin
N a v a n e e t h30-Jul-07 2:21
N a v a n e e t h30-Jul-07 2:21 
GeneralRe: Setting CollectionClass to Property - Custom Controls Pin
Martin#30-Jul-07 2:27
Martin#30-Jul-07 2:27 
QuestionPlugin Frmaework in VS 2005 .NET Pin
dotman130-Jul-07 0:06
dotman130-Jul-07 0:06 
AnswerRe: Plugin Frmaework in VS 2005 .NET Pin
Joseph Guadagno30-Jul-07 4:23
Joseph Guadagno30-Jul-07 4:23 
GeneralRe: Plugin Frmaework in VS 2005 .NET Pin
dotman130-Jul-07 23:14
dotman130-Jul-07 23:14 
Questionslow speed Pin
Xmen Real 29-Jul-07 23:01
professional Xmen Real 29-Jul-07 23:01 
AnswerRe: slow speed Pin
Luc Pattyn29-Jul-07 23:23
sitebuilderLuc Pattyn29-Jul-07 23:23 
Hi
two comments

1.
take richTextBox1.Lines out of the for line and the for block,
so do:
string[] lines=richTextBox1.Lines;
int linesLength=lines.Lenght;
for (int a = c; a < linesLength; a++) {
    selectionlength += lines[a].Length + 1;
    ...
}


That will give a dramatic difference because now the string array has to
be generated once instead of 100,000 times.

2.
If you don't need the extra capabilities of RichTextBox, don't use it at all.
Your app seems line-orineted; I can't tell whether you use colors, bold, etc.
If not, consider a ListBox, it is faster at anything it does (and it only
selects entire lines).

Smile | :)


GeneralRe: slow speed Pin
Xmen Real 30-Jul-07 2:31
professional Xmen Real 30-Jul-07 2:31 
GeneralRe: slow speed Pin
Luc Pattyn30-Jul-07 2:46
sitebuilderLuc Pattyn30-Jul-07 2:46 
GeneralRe: slow speed [modified] Pin
Xmen Real 30-Jul-07 3:00
professional Xmen Real 30-Jul-07 3:00 
AnswerRe: slow speed Pin
girm29-Jul-07 23:37
girm29-Jul-07 23:37 
GeneralRe: slow speed Pin
Xmen Real 30-Jul-07 2:33
professional Xmen Real 30-Jul-07 2:33 
GeneralRe: slow speed Pin
girm30-Jul-07 21:51
girm30-Jul-07 21:51 
GeneralRe: slow speed Pin
Xmen Real 31-Jul-07 19:08
professional Xmen Real 31-Jul-07 19:08 
QuestionC# Project corrupted? Pin
Vikas K.29-Jul-07 21:21
Vikas K.29-Jul-07 21:21 
AnswerRe: C# Project corrupted? Pin
T.EDY29-Jul-07 21:53
T.EDY29-Jul-07 21:53 
GeneralRe: C# Project corrupted? Pin
Vikas K.29-Jul-07 23:29
Vikas K.29-Jul-07 23:29 
GeneralRe: C# Project corrupted? Pin
Developer61130-Jul-07 0:05
Developer61130-Jul-07 0:05 
GeneralRe: C# Project corrupted? [modified] Pin
Martin#30-Jul-07 0:08
Martin#30-Jul-07 0:08 
GeneralRe: C# Project corrupted? Pin
Vikas K.30-Jul-07 19:54
Vikas K.30-Jul-07 19:54 
GeneralRe: C# Project corrupted? Pin
Martin#30-Jul-07 20:02
Martin#30-Jul-07 20:02 
GeneralRe: C# Project corrupted? Pin
Vikas K.30-Jul-07 20:12
Vikas K.30-Jul-07 20:12 
Questionproblem in generating crysatl reports Pin
monuSaini29-Jul-07 21:14
monuSaini29-Jul-07 21:14 
AnswerRe: problem in generating crysatl reports Pin
Edwin Syarief29-Jul-07 22:18
Edwin Syarief29-Jul-07 22:18 

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.