No announcements
Found 3008204 threads
-
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 | 47911 Views | Created by CoOlDud3 - Wednesday, July 4, 2012 12:13 PM | Last reply by shan032 - Tuesday, December 18, 2012 5:28 AM -
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 | 28749 Views | Created by TejD - Tuesday, October 13, 2015 10:17 AM | Last reply by Piyush Manharlal - Monday, November 21, 2016 7:03 AM -
0 Votes
Only allow users to enter a number in textboxes.
I am doing an imperial to metric length converter and I am struggling to create an error message if a number is not inputted.Answered | 8 Replies | 4632 Views | Created by Doddsbury - Wednesday, May 8, 2013 10:51 AM | Last reply by JohnGrove - Wednesday, May 8, 2013 2:20 PM -
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 | 8001 Views | Created by Doddsbury - Wednesday, May 8, 2013 11:29 AM | Last reply by dbasnett - Wednesday, May 15, 2013 12:05 PM -
1 Votes
TextBox ,only allow User to enter '0-9' and 'a-f'(ignoring case)
You could handle the PreviewTextInput event of the TextBox and use a regular expression: <TextBox ...Answered | 1 Replies | 960 Views | Created by Rogerguo - Wednesday, November 5, 2014 5:33 AM | Last reply by Magnus (MM8) - Wednesday, November 5, 2014 3:24 PM -
0 Votes
how can i check not allow user enter symbol and number in textbox?
The second statement will only allow an uppercase letter for the first character.Answered | 4 Replies | 2380 Views | Created by colton_chan - Wednesday, March 13, 2013 7:44 PM | Last reply by Solitaire - Thursday, March 14, 2013 4:20 AM -
33 Votes
WPF TEXTBOX only enter numbers using PreviewKeyDown e.key but key.numpad can only be entered in English can not use other word input
Net can not directly receive character messages, so it can not directly block the characters.Answered | 33 Replies | 9817 Views | Created by Ruby-Joe - Friday, August 18, 2017 4:33 PM | Last reply by Ruby-Joe - Friday, August 18, 2017 7:27 PM -
0 Votes
How to Fire an Event on User start to Entering character in TextBox??
I want to fire an event at user enters the text of each character (like Google search ).Answered | 6 Replies | 1171 Views | Created by sathyaraj.p - Friday, December 14, 2012 11:25 AM | Last reply by Shyam Kr - Friday, December 14, 2012 3:00 PM -
1 Votes
textbox that only accepts enter
Is the event raised when you press the enter button ?Answered | 9 Replies | 3674 Views | Created by badiparmagi - Friday, May 7, 2010 2:23 PM | Last reply by Vladimir.Ilic - Monday, May 10, 2010 10:08 AM -
0 Votes
How to only restrict the users to enter only numbers
Hi Pratik, Note that the InputScope is advisory only: it will affect the soft keyboard presentation, but it won't prevent the user from entering other ...Answered | 11 Replies | 2826 Views | Created by Pratik99 - Friday, September 13, 2013 4:36 PM | Last reply by Rob Caplan [MSFT] - Friday, September 20, 2013 7:53 PM -
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 | 819 Views | Created by Rewin-Amir - Wednesday, March 26, 2014 7:48 PM | Last reply by Viorel_ - Thursday, March 27, 2014 1:33 PM -
4 Votes
Define a TextBox with allowed Character
Different cultures will treat it differently, so what should a general program do when the user enters this?Answered | 33 Replies | 1890 Views | Created by martmen - Monday, June 10, 2013 6:29 PM | Last reply by martmen - Wednesday, June 19, 2013 4:59 PM -
7 Votes
allow only number in textbox
Allow pressing Numpad numbers.Answered | 15 Replies | 63012 Views | Created by kkkJoe - Tuesday, February 19, 2008 1:15 PM | Last reply by ManojSunu - Monday, December 3, 2012 11:26 AM -
0 Votes
Textbox auto populate Number when user entered
Hi Ismaiel, In My requirement is ,when user enter values into textbox..it will automatically format like this ...Answered | 12 Replies | 1086 Views | Created by Reddy416 - Friday, November 28, 2014 7:50 AM | Last reply by Ismaiel AKKA - Friday, November 28, 2014 11:06 AM -
0 Votes
Limit number of characters in a textbox
I'm trying to limit the number of characters a user can enter into the text box on a form.Answered | 7 Replies | 3099 Views | Created by Casey_M - Sunday, February 1, 2015 10:48 PM | Last reply by Casey_M - Tuesday, February 3, 2015 12:35 PM -
3 Votes
numbers only in textbox
Yes, i sticked with something that worked, because i dont want to write a program that annoy users of my program. i rather let the user know immediately that wrong key is ...Answered | 19 Replies | 5619 Views | Created by max80 - Saturday, May 30, 2009 4:18 PM | Last reply by Star2 - Thursday, December 2, 2010 8:38 AM -
4 Votes
Enter press in TextBox
Say if you had a few textboxes and wanted to jump to the next one in the tab order after typing something and pressing enter.Answered | 8 Replies | 2009 Views | Created by EdCal - Thursday, March 28, 2013 5:56 PM | Last reply by LeonCS - Friday, March 29, 2013 6:21 AM -
0 Votes
Detecting when text is entered in a textbox?
Hi, Subscibing the TextChanged or KeyDown events will tell (after every entered letter) you when new text is in textbox.Answered | 3 Replies | 3232 Views | Created by Nermin_K - Friday, January 9, 2009 5:14 AM | Last reply by Tomi Airaksinen - Friday, January 9, 2009 7:20 AM -
0 Votes
Handle format of input enter textbox
I trap the enter key (use event handler kill focus of that textbox) and check for length of the input in the textbox, add zero if the length is 2 and update ...Answered | 5 Replies | 2001 Views | Created by tt-2010 - Tuesday, January 8, 2013 4:46 PM | Last reply by tt-2010 - Wednesday, January 9, 2013 4:13 PM -
0 Votes
TextBox beep sound on enter
Hi Michiel, Please see the previous thread How to disable warning sound when pressing delete, backspace or enter in a textbox?Answered | 1 Replies | 8935 Views | Created by Michiel Post - Friday, March 2, 2012 2:28 PM | Last reply by Rob Caplan [MSFT] - Saturday, March 3, 2012 2:37 AM - Items 1 to 20 of 3008204 Next ›
No announcements