Home > Forum > Others > How to allow user to enter only numbers in a textbox using vb.net

How to allow user to enter only numbers in a textbox using vb.net

by Nikky   on Sep 04, 2013   Category: Others  |  Views: 2878    |  Points: 5   |  Starter 
  Reply
A user should be able to enter numbers only in a textbox. what is the code to make it work in vb.net?

Bookmark and Share:
 
  User Reply  | Ask a question  |   Reply 
  Re :How to allow user to enter only numbers in a textbox using vb.net   
by Thamil
on Sep 5 2013 12:01AM
Points : 10
Gold 
Hello Nikky,

Please use below link to get complete code for this. we can able to achiev this through client side javascript.

http://www.dotnetgallery.com/lab/resource14-Restrict-the-characters-in-the-textbox-using-JavaScript-Allow-number-only.aspx
  Re :How to allow user to enter only numbers in a textbox using vb.net   
by Nikky
on Sep 5 2013 11:26AM
Points : 10
Starter 
Sorry for not mentioning about the windows application.The question refers to the textbox of a windows application using VB.
  Re :How to allow user to enter only numbers in a textbox using vb.net   
by Thamil
on Sep 6 2013 8:55AM
Points : 10
Gold 
Please refer this below links

http://stackoverflow.com/questions/3413708/how-to-allow-user-to-enter-only-numbers-in-a-textbox-in-vb-net
http://en.kioskea.net/faq/9597-vb-net-textbox-allow-the-use-of-numbers-only
http://www.dreamincode.net/forums/topic/67774-only-numbers-in-textbox/

Recent Post

Latest Posts