private void textbox1_keyup(object sender, keyeventargs e)
{
var textbox = (sender as textbox);
if (textbox == null) return;
textbox.text = regex.replace(textbox.text,"[^\\d\\.] ","");
textbox.selectionstart = textbox.text.length;
}
posted on 2013-06-13 08:45
sanmao 阅读(969)
评论(0) 编辑 收藏