private void button1_Click(object sender, EventArgs e)
{
timer1.Enabled = true
i = textBox1.Text.Trim().Length
}
string str = ""
int i=0
private void timer1_Tick(object sender, EventArgs e)
{
if (str.Length <i)
{
str = textBox1.Text.Trim().Substring(textBox1.Text.Trim().Length - 1) + str
}
textBox1.Text = textBox1.Text.Trim().Substring(0, textBox1.Text.Trim().Length - 1)
if (textBox1.Text.Length <= 0)
{
textBox1.Text = str
}
}
private void button2_Click(object sender, EventArgs e)
{
timer1.Enabled = false
str = ""
}
这种程序我以前做过,我把这个相关的代码写在百度空间了 地址是http://hi.baidu.com/hapgaoyi/blog/item/2820a75133a0c5571138c259.html
如果还想进一步的了解,那么可以和我交流。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)