adding lines to a multiline textbox...

  • Thread starter Thread starter trint
  • Start date Start date
T

trint

My code is just adding to the first row instead of adding to the next:

TextReader tr = new StreamReader(@"C:\Program Files
\webResponse3\websiteLog.log");
string lineTime;
//string[] namesTime = new string[3];

int i = 0;
while ((lineTime = tr.ReadLine()) != null)
{
textBox1.Text = lineTime;
//i++;
}
// close the stream
tr.Close();

How can I keep adding to the ascending rows please?
Thanks,
Trint
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top