private void txtmoney_KeyPress(object sender, KeyPressEventArgs e)
        {
            if ((e.KeyChar >= 48 && e.KeyChar <= 57) || e.KeyChar == 46 || e.KeyChar == 8)
            {
                return;
            }
            else
            {
                e.KeyChar = (char)Keys.None;
                return;
            }
        }
posted on 2008-03-28 15:57  白沙河  阅读(679)  评论(0编辑  收藏  举报