janatech
March 22nd, 2009, 10:07 PM
Hi All,
I have some binary data to display in a rich text box. It is possible to display the data using
this->textbox1->text = HeadertoDisplayString;
I need to format the data while displaying in the rich text box. So I make a string of data using the data.ToString(" 00 ") and then append to the header using
Line1> this->textbox1->text = this->textbox1->text + data;
Line2> this->textbox1->Update;
Line3> this->form1->Update;
Now when I tried to display as little as 1 MB in size, it takes a very long time to update.
It doesn't make a difference with Line2 & Line3. I am using a reasonably faster system. So there is something wrong with the way the data is being displayed.
What is the best method to display the string faster. Is there any other method? Pls help.
Thank you very much in advance.
Best Regards
Jana
I have some binary data to display in a rich text box. It is possible to display the data using
this->textbox1->text = HeadertoDisplayString;
I need to format the data while displaying in the rich text box. So I make a string of data using the data.ToString(" 00 ") and then append to the header using
Line1> this->textbox1->text = this->textbox1->text + data;
Line2> this->textbox1->Update;
Line3> this->form1->Update;
Now when I tried to display as little as 1 MB in size, it takes a very long time to update.
It doesn't make a difference with Line2 & Line3. I am using a reasonably faster system. So there is something wrong with the way the data is being displayed.
What is the best method to display the string faster. Is there any other method? Pls help.
Thank you very much in advance.
Best Regards
Jana