求一个c#.Net的winForm的小程序!急急急急

求一个c#.Net的winForm的小程序!急急急急,第1张

timer的enable初始状态为false

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

如果还想进一步的了解,那么可以和我交流。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/8121201.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-13
下一篇 2023-04-13

发表评论

登录后才能评论

评论列表(0条)

保存