回复:(蓝星海)[求助]关于文本框的输入问题,请教错...
你们好象麻烦了点
这可是.NET啊
呵呵~~
Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If Asc(e.KeyChar) < 48 Or Asc(e.KeyChar) > 57 Then
e.Handled = True
End If
End Sub