c#计时器问题???
private void Form1_Load(object sender, EventArgs e){
timer1.Start();
timer2.Start();
}
string T = "苟利国家生死以," + "\r\n" + "岂因祸福避趋之。"; int i = 0;
private void timer1_Tick(object sender, EventArgs e)
{
string s;
s = T.Substring(i, 1);
textBox1.Text += s;
label1.Text = T.Length + "----" + i.ToString();
textBox1.SelectionStart = textBox1.TextLength;
i++;
if (i > T.Length-1)
{
i = 0;
s = "";
textBox1.Text = "";
timer1.Stop();
timer2.Start();
}
}
private void timer2_Tick(object sender, EventArgs e)
{
timer2.Stop();
timer1.Start();
}
}
}
结果是最后一个句号显示不出来,求高手解决????!!!