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 閱讀(1046) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 四平市| 贵溪市| 贞丰县| 巧家县| 阿坝县| 孙吴县| 成都市| 通化市| 内乡县| 彭阳县| 清水河县| 永顺县| 大足县| 修文县| 旺苍县| 忻城县| 漯河市| 赤水市| 平江县| 慈利县| 滨海县| 玉田县| 那曲县| 蒙自县| 湘潭县| 杨浦区| 昌宁县| 新田县| 静海县| 尖扎县| 确山县| 乌海市| 邵阳市| 莫力| 淮阳县| 兴仁县| 拜城县| 新巴尔虎左旗| 麦盖提县| 仙游县| 衡山县|