VB.NET TextBox 只允许输入1-100之间的整数 简洁篇
摘要:
1 Dim Str As String = "" 2 Private Sub txtRecond_KeyUp(sender As System.Object, e As System.Windows.Forms.KeyEventArgs) Handles txtRecond.KeyUp 3 txtRecond.Text = Regex.Replace(txtRecond.Text, "[^0-9]", "") 4 If txtRecond.Text = "" Then 5 Return 6 End If ... 阅读全文
posted @ 2014-01-24 08:52 悟生慧 阅读(1999) 评论(0) 推荐(0) 编辑