level 2
文本框只能输入键盘上0~9数字输入其他键无效,求段代码。
2012年07月30日 04点07分
1
level 9
If KeyAscii <= 57 And KeyAscii >= 48 Then
Else
KeyAscii = 0
End If
2012年09月04日 04点09分
5
level 2
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii > Asc("9") Or KeyAscii <Asc("0") Then
KeyAscii = 0
End If
End Sub
//////////////////////////////////////////////
Text1里面只能输入数字了
2013年07月02日 13点07分
9