Professional Documents
Culture Documents
Allowing Only Alphanumeric Characters On A TextBox
Allowing Only Alphanumeric Characters On A TextBox
TECHNOLOGIES ANSWERS LEARN NEWS BLOGS VIDEOS INTERVIEW PREP BOOKS EVENTS CAREER MEMBERS JOBS C# Corner Search
LATEST BLOGS
Allowing only Alphanumeric Characters on a TextBox How Is UDP Server Di erent From TCP Server
Hemant Srivastava Updated date Nov 18, 2013 63.4k 8 3 Experimental Co-authoring for Power Apps Studio
Download Free .NET & JAVA O ce Files API Try Free File Format APIs for Word/Excel/PDF Basic Knowledge On Generics
If you don't want to allow any other characters entry except for the alphanumeric characters in a TextBox, then you can do this on the KeyPress
Azure - New Restrictions To Azurewebsites.net
Domain
event of a TextBox.
In order to do that, you need to add one more condition in the if block as
http://hemant-srivastava.blogspot.com
3 8
Type your comment here and press Enter Key (Minimum 10 characters)
I don't get any working solution to restrict textbox to alphanumeric only in windows phone 8.1 app from the past 7
days. Can you suggest me any method to handle this. Thanks for the previous help.
Harshit Chauhan Jul 22, 2015
NA 0 0 1 0 Reply
Generally this kind of validation I prefer to do on when you exit from the textbox (through validate event
on TextBox)
Hemant Srivastava Jul 20, 2015
319 7.3k 4.6m 1
how to use this method? mean to say where from to call this method . Which arguments i've to pass into the
function ?
Ammar Hassan Mar 30, 2015
NA 0 584 2 1 Reply
You need to attach an event handler "Key Press" on the TextBox in your Winform. Then you need to use
the above code in that event handler.
Hemant Srivastava Mar 31, 2015
319 7.3k 4.6m 1
About Us Contact Us Privacy Policy Terms Media Kit Sitemap Report a Bug FAQ Partners