Click here to Skip to main content
15,906,106 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
ı entered value in textbox and I want to check regex kontrol.But I entered line by line entered and I want to all line check.How to \n line check control (only numeric and five numbers(12345,83732 ..vs) regex in xmal?

What I have tried:

For example:

textbox values:

12345
83738
126
12vhl

I want to dont accept 126 and 12vhl.Because 126 three numbers,12vhl not include numeric number.
Posted
Updated 7-Sep-19 22:00pm
Comments
Patrice T 7-Sep-19 18:25pm    
Show your code.
BillWoodruff 7-Sep-19 21:42pm    
You have already asked this question:

https://www.codeproject.com/Questions/5166153/How-do-I-save-the-row-values-entered-in-the-textbo

and, I've already shown you how to handle text entry so there is no chance incorrectly formatted lines can occur:

https://www.codeproject.com/Answers/5166576/How-do-I-save-the-row-values-entered-in-the-textbo
Member 14169626 8-Sep-19 1:44am    
yes thank you for your help. I just want to check for regex usage and for later use.

1 solution

Use NumericUpDown controls and set the minimum value to 10000 and the maximum value to 99999.
See: NumericUpDown Class (System.Windows.Forms) | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900