c控件rutltextbox_richtextbox 控件_c richtextbox回车(7)

电脑杂谈  发布时间:2017-01-31 04:20:06  来源:网络整理

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)


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-29694-7.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 封孟绅
      封孟绅

      显然一个统一的中华民族必然比目前的分裂状态下的内耗更好

    热点图片
    拼命载入中...