No announcements
Found 1849835 threads
-
7 Votes
allow only number in textbox
Allow pressing Numpad numbers.Answered | 15 Replies | 63152 Views | Created by kkkJoe - Tuesday, February 19, 2008 1:15 PM | Last reply by ManojSunu - Monday, December 3, 2012 11:26 AM -
1 Votes
only allowing numbersonly in textbox.
If you want to restrict the textbox for numbers only, why don't you use MaskedTextBox ???Answered | 18 Replies | 5335 Views | Created by newatprogramming - Sunday, February 6, 2011 10:26 AM | Last reply by Aspen VJ - Tuesday, February 8, 2011 1:50 AM -
1 Votes
Textboxes only allow 1 to 5 only
Hello, I want my text boxes only allows only number 1 to 5 but i don't know the codes for that, can anyone teach me?Answered | 8 Replies | 903 Views | Created by Rewin-Amir - Wednesday, March 26, 2014 7:48 PM | Last reply by Viorel_ - Thursday, March 27, 2014 1:33 PM -
0 Votes
Allow only number no Letters?
Hello guys, Or you can always create a custom TextBox control which takes an enumeration of InputType in which you can specify what chars are ...Answered | 8 Replies | 6167 Views | Created by Alexander Supertramp111 - Friday, November 26, 2010 12:08 PM | Last reply by suraj y shetty - Friday, March 25, 2011 5:18 PM -
3 Votes
numbers only in textbox
Only performance counts!Answered | 19 Replies | 5694 Views | Created by max80 - Saturday, May 30, 2009 4:18 PM | Last reply by Star2 - Thursday, December 2, 2010 8:38 AM -
2 Votes
Only numbers in a textbox
Hello , this code may allow only numbers and backspace , and if there is only one digit left in the textbox and the caret is at the beginning , it can be ...Answered | 6 Replies | 5239 Views | Created by Alvin Kuiper - Sunday, October 29, 2006 11:45 AM | Last reply by EmoN_ - Wednesday, December 2, 2009 9:42 AM -
2 Votes
Only letters and numbers in a TextBox
Hello again, If you attach to the PreviewTextInput event of the TextBox then you can screen all of the content which the user types in.Answered | 8 Replies | 9835 Views | Created by Frances83 - Monday, February 12, 2007 11:49 AM | Last reply by yuems - Tuesday, August 7, 2007 9:13 AM -
0 Votes
Numbers-Only Properties on Multiple Textboxes
I have a problem whereby I have 10 text boxes and I don't like to use the same code for each and every text box that allows users to input only numbers, which ...Answered | 6 Replies | 5835 Views | Created by ongeelim - Monday, February 28, 2011 3:29 PM | Last reply by Calvin_Gao - Wednesday, March 2, 2011 10:51 AM -
5 Votes
Allow user to only enter numbers in textbox and if character entered then clear the textbox along with a message
Hi try this code char keypress = e.KeyChar; if (char.IsDigit(keypress) || e.KeyChar==Convert.ToChar(Keys.Back)) { ...Answered | 6 Replies | 47977 Views | Created by CoOlDud3 - Wednesday, July 4, 2012 12:13 PM | Last reply by shan032 - Tuesday, December 18, 2012 5:28 AM -
1 Votes
How to create textbox for only numbers?
\d+){0,1}$ It allows only number like 121213131, 2132.13131 if u ...Answered | 4 Replies | 3951 Views | Created by Metehan TOKSOY - Friday, July 19, 2013 9:07 AM | Last reply by Khant Nipun - Saturday, July 20, 2013 12:38 PM -
13 Votes
[UWP] How to enter only numbers/digits in textbox
I have created simple class that can be passed in Tag property of TextBox and using TextChanging Event you can further process to allow numeric input ...Answered | 11 Replies | 29001 Views | Created by TejD - Tuesday, October 13, 2015 10:17 AM | Last reply by Piyush Manharlal - Monday, November 21, 2016 7:03 AM -
1 Votes
only numbers in textbox (ASP)
hey there people i want to restrict input of a textbox to only numbers but am doing it on asp.net, so i cant check for each character that is being inputed cause it ...Answered | 1 Replies | 2926 Views | Created by themehio - Tuesday, September 8, 2009 2:57 PM | Last reply by Khanna Gaurav - Tuesday, September 8, 2009 5:12 PM -
0 Votes
Activate Numbers only TextBox with button
I like the idea of using a NumericUpDown or a MaskedTextBox or a custom control for working with numbers.Answered | 6 Replies | 973 Views | Created by Flynnskfx18 - Saturday, December 2, 2017 1:09 PM | Last reply by Kareninstructor - Saturday, December 2, 2017 3:56 PM -
3 Votes
Textbox that should accept only numbers
Do you want to allow DragDrop or not.Answered | 4 Replies | 4926 Views | Created by Chandramohan Palanisamy - Tuesday, December 16, 2008 5:57 AM | Last reply by Chandramohan Palanisamy - Thursday, December 18, 2008 10:35 AM -
0 Votes
Textbox must accept only numbers and '.'
And this is all the code which accepts Only decimals into textBox?Answered | 5 Replies | 4373 Views | Created by wartmignef - Friday, March 25, 2011 1:54 PM | Last reply by Mitja Bonca - Friday, March 25, 2011 4:27 PM -
0 Votes
Alphanumeric validation for textbox | No numbers or characters allowed.
All you need to do is check if a backspace or tab key is pressed, don't check for all keys that are not allowed only keys that are allowed.Answered | 3 Replies | 6166 Views | Created by Synthologic - Friday, September 30, 2011 3:03 AM | Last reply by danishani - Tuesday, January 31, 2012 4:24 AM -
0 Votes
Textbox that containing numbers or digits only
Use the keypress event I found the follow snippet http://msdn.microsoft.com/en-us/library/ms229644(v=vs.90).aspx public class NumericTextBox : ...Answered | 2 Replies | 2177 Views | Created by FuhansPujiSaputra - Wednesday, August 21, 2013 5:26 AM | Last reply by BonnieB - Saturday, August 24, 2013 1:27 AM -
0 Votes
Only allow users to enter a number in textboxes.
Thats because you need to ether use TryParse to convert it to a number or make the textbox so that only numbers can be used in it.Answered | 10 Replies | 8102 Views | Created by Doddsbury - Wednesday, May 8, 2013 11:29 AM | Last reply by dbasnett - Wednesday, May 15, 2013 12:05 PM -
4 Votes
Define a TextBox with allowed Character
allow[54] = "z" The TextBox allowed only the sign in the arry allow.Answered | 33 Replies | 1972 Views | Created by martmen - Monday, June 10, 2013 6:29 PM | Last reply by martmen - Wednesday, June 19, 2013 4:59 PM -
8 Votes
Allow only certain characters to textbox from list.
OK, I decided its just better to check to make sure all the characters are allowed instead of not allowing them to be input.Answered | 11 Replies | 7143 Views | Created by Maya Key - Tuesday, July 29, 2008 3:57 AM | Last reply by syntaxeater - Monday, August 4, 2008 11:31 AM - Items 1 to 20 of 1849835 Next ›
No announcements