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

C#

 
GeneralRe: Setting CollectionClass to Property - Custom Controls Pin
N a v a n e e t h30-Jul-07 1:06
N a v a n e e t h30-Jul-07 1:06 
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 
hi friends,
i m making a program where it open a text file in rtb1 and when button1 pressed it take one part from rtb1 and put it into rtb2
the codes are working good but problem is that its taking so much time

rtb1 have 34609 lines and putting 123 lines in rtb2 from rtb1 in 31 secs

i ve pentium D 2.8Ghz and 512mb ram, i think its enough for it but 31 secs are too

and here is the coding
richTextBox1.Find("[ID] = 1234");
     int selectionlength = 0;
     int c = richTextBox1.GetLineFromCharIndex(richTextBox1.SelectionStart);
     int d = richTextBox1.GetFirstCharIndexFromLine(c);

     for (int a = c; a < richTextBox1.Lines.Length; a++)

     {

         selectionlength += richTextBox1.Lines[a].Length + 1;

         if (richTextBox1.Lines[a].Trim() == "[End]")
         {
             break;
         }

     }

     richTextBox1.SelectionStart = d;
     richTextBox1.SelectionLength = selectionlength - 2;
     richTextBox2.Text = richTextBox1.SelectedText;



and the text file is look like :
[ID] = 0000
lines
[End]
[ID] = 0001
lines
[End]
.................


so somebody know any solution to increase its speed...Smile | :) Smile | :) Smile | :) ???

Becoming Programmer...

AnswerRe: slow speed Pin
Luc Pattyn29-Jul-07 23:23
sitebuilderLuc Pattyn29-Jul-07 23:23 
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 

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.