Most of the posts in this blog are based on real time issues and scenarios. The main goal here is to share userful information and help many people out there. These information are really used and working. Please share any information you have while reading this blog.
Tuesday, June 19, 2012
How to create a numeric only Text box
Add the following code in the textBox_KeyPress event:
If (NotChar.IsNumber(e.KeyChar) And (e.KeyChar <> ChrW(Keys.Back))) Then e.Handled = True EndIf
No comments:
Post a Comment