Accept Only Numbers in Textbox !
Do you want to input only numbers in a textbox? and just want a few lines of code ?Well this code is for you....See it for yourself....Want to know more of my codes then email me....
AI
AI 요약: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
소스 코드
'In the KeyPress event of a textbox
'Shall we say you have put one textbox in your form
'Here it goes
Private Sub text1_KeyPress(Keyascii as Integer)
Select case Keyascii
case asc(vbcr)
Keyascii=0
case 8,46
case 47 to 58
case else
Keyascii=0
End Select
End Sub
원본 댓글 (3)
Wayback Machine에서 복구됨