else
this.richTextBox1.SelectionAlignment = HorizontalAlignment.Center;
this.richTextBox1.Focus();
}
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if((e.KeyChar < 48 || e.KeyChar > 57) && e.KeyChar != 8 && e.KeyChar !=13)
{
e.Handled = true;
}
else if(e.KeyChar == 13)
{
TextBox txt = (TextBox)sender;
if(txt.Text.Length > 0)
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-29694-7.html
锅炉
那个女的是
喜欢刘诺英的歌声
还是打