thieumao

Chỉ cho phép nhập số vào TextBox trong VB6

Oct 20th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.13 KB | None | 0 0
  1. Private Sub txtID_KeyPress(KeyAscii As Integer)
  2.     If KeyAscii < 48 Or KeyAscii > 57 Then
  3.         KeyAscii = 0
  4.     End If
  5. End Sub
Advertisement
Add Comment
Please, Sign In to add comment