如何让光标随着文字往后移???
namespace 文字{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
string s = "苟利国家生死以,"+"\r\n"+"岂因祸福避趋之。"; int i = 0;
private void timer1_Tick(object sender, EventArgs e)
{
string t= s.Substring(i, 1);
textBox1.Text += t;
i++;
if (i > 17) timer1.Stop();
}
private void Form1_Load(object sender, EventArgs e)
{
timer1.Start();
}
}
}
c# 如何让光标随着文字往后移???