T
Tom
Hi,
Here is the code:
this.textBox1.AcceptsReturn = true;
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.ScrollBars =
System.Windows.Forms.ScrollBars.Both;
this.textBox1.Size = new System.Drawing.Size(552, 296);
this.textBox1.TabIndex = 0;
this.textBox1.Text = DateTime.Now + " hello ....." +
Environment.NewLine;
this.textBox1.TextChanged += new System.EventHandler
(this.textBox1_TextChanged);
private void timer1_Tick(object sender, System.EventArgs e)
{
this.textBox1.Text = DateTime.Now + " welcome ....." +
Environment.NewLine;
}
I want to display the text in the text box like the
following:
DateTime hello
DateTime welcome
DateTime welcome
DateTime welcome
DateTime welcome
DateTime welcome
DateTime welcome
DateTime welcome
DateTime welcome
.....
Environment.NewLine seems does not work. How can I do
that?
Thanks
Here is the code:
this.textBox1.AcceptsReturn = true;
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.ScrollBars =
System.Windows.Forms.ScrollBars.Both;
this.textBox1.Size = new System.Drawing.Size(552, 296);
this.textBox1.TabIndex = 0;
this.textBox1.Text = DateTime.Now + " hello ....." +
Environment.NewLine;
this.textBox1.TextChanged += new System.EventHandler
(this.textBox1_TextChanged);
private void timer1_Tick(object sender, System.EventArgs e)
{
this.textBox1.Text = DateTime.Now + " welcome ....." +
Environment.NewLine;
}
I want to display the text in the text box like the
following:
DateTime hello
DateTime welcome
DateTime welcome
DateTime welcome
DateTime welcome
DateTime welcome
DateTime welcome
DateTime welcome
DateTime welcome
.....
Environment.NewLine seems does not work. How can I do
that?
Thanks