Click here to Skip to main content
15,884,472 members
Home / Discussions / C#
   

C#

 
AnswerRe: Weird problem with Button.Image Pin
engsrini29-Jun-06 6:13
engsrini29-Jun-06 6:13 
QuestionRetrieve TextBoxes border colour. Pin
Stu Richardson28-Jun-06 22:26
Stu Richardson28-Jun-06 22:26 
AnswerRe: Retrieve TextBoxes border colour. Pin
JoeSharp28-Jun-06 22:42
JoeSharp28-Jun-06 22:42 
GeneralRe: Retrieve TextBoxes border colour. [modified] Pin
Stu Richardson28-Jun-06 23:10
Stu Richardson28-Jun-06 23:10 
Question[.Net1.1][Winform] MaximizeBox event ?! Pin
Seb.2628-Jun-06 22:16
Seb.2628-Jun-06 22:16 
AnswerRe: [.Net1.1][Winform] MaximizeBox event ?! Pin
Nader Elshehabi28-Jun-06 23:25
Nader Elshehabi28-Jun-06 23:25 
AnswerRe: [.Net1.1][Winform] MaximizeBox event ?! Pin
engsrini29-Jun-06 6:22
engsrini29-Jun-06 6:22 
QuestionTakes too long to create a big string. Pin
sergestusxx28-Jun-06 21:41
sergestusxx28-Jun-06 21:41 
Hi!

I'm building a big xml string with a for loop and it takes veeeeeeeeeeeeeery much to complete this process. Later on I load it in an XmlDocument and save it in a file. This last thing takes no time.

The loop is something like:

<br />
string xml = "<Top>";<br />
for (int i=0; i < <ArrayList>.Count; i++){<br />
<br />
xml += "<Something>";<br />
xml += bla bla;<br />
xml += "</Something>";<br />
xml += <Object>.ToXml();  //This calls a method which returns an xml string of another object (may call another one inside too).<br />
...<br />
...<br />
<br />
}<br />
xml += "</Top>";<br />


I know than the process may not be linear in time, but is there any known way to speed up this proccess? When the thing gets big (2MB xml file) it's really annoying to wait tons of minutes for this to save.

Thanx for any help!
AnswerRe: Takes too long to create a big string. Pin
Martin#28-Jun-06 21:52
Martin#28-Jun-06 21:52 
AnswerRe: Takes too long to create a big string. Pin
sathish s28-Jun-06 21:52
sathish s28-Jun-06 21:52 
AnswerRe: Takes too long to create a big string. Pin
Sushant Duggal28-Jun-06 21:53
Sushant Duggal28-Jun-06 21:53 
QuestionHow to get cell containg Text from datagrid in Winforms Pin
ranandbe28-Jun-06 20:42
ranandbe28-Jun-06 20:42 
AnswerRe: How to get cell containg Text from datagrid in Winforms Pin
aruna_susee29-Jun-06 0:28
aruna_susee29-Jun-06 0:28 
GeneralRe: How to get cell containg Text from datagrid in Winforms Pin
ranandbe29-Jun-06 20:50
ranandbe29-Jun-06 20:50 
GeneralRe: How to get cell containg Text from datagrid in Winforms Pin
aruna_susee29-Jun-06 21:18
aruna_susee29-Jun-06 21:18 
Questionhow to use RowFilter Property of DataView in C#? Pin
Alamzeb khan28-Jun-06 20:41
Alamzeb khan28-Jun-06 20:41 
AnswerRe: how to use RowFilter Property of DataView in C#? Pin
ketankumar28-Jun-06 21:19
ketankumar28-Jun-06 21:19 
QuestionWindows services Pin
Pardeep.hsp28-Jun-06 20:41
Pardeep.hsp28-Jun-06 20:41 
Questionhow to insert the element of a array of ArrayList in a DataGrid Pin
foysal mamun28-Jun-06 20:16
foysal mamun28-Jun-06 20:16 
AnswerRe: how to insert the element of a array of ArrayList in a DataGrid Pin
Martin#28-Jun-06 20:32
Martin#28-Jun-06 20:32 
AnswerRe: how to insert the element of a array of ArrayList in a DataGrid Pin
stancrm28-Jun-06 20:44
stancrm28-Jun-06 20:44 
QuestionHow to migrate c# projects to 64-bit platforms? [modified] Pin
Eric Vonjacson28-Jun-06 19:43
Eric Vonjacson28-Jun-06 19:43 
AnswerRe: How to migrate c# projects to 64-bit platforms? Pin
stancrm28-Jun-06 20:30
stancrm28-Jun-06 20:30 
Questionreading and writing to ports Pin
Emyat28-Jun-06 17:56
Emyat28-Jun-06 17:56 
AnswerRe: reading and writing to ports Pin
engsrini29-Jun-06 6:25
engsrini29-Jun-06 6:25 

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.