Click here to Skip to main content
15,943,715 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can I add a serial number without using the serialnumber template... I don't like it because it's too weak... and anybody can crack it.... I cannot beleive that Microsoft can make a same joke.
how can I define that the serial number is single like: 1234AfDRs12?
is that possible??????????????????

this is done by microsoft....................
For example, setting the SerialNumberTemplate property to "<### - %%%%>" creates two text boxes separated by a dash surrounded by spaces. Validation for the first box (###) simply verifies that the user has entered three digits. The second box (%%%%) is validated by an algorithm that adds the digits together and divides the sum by 7. If the remainder is 0, validation succeeds; otherwise, it fails.
Updated 30-Aug-10 23:47pm
Christian Graus 31-Aug-10 5:30am    
IS this a question and an answer ? What is going on here ?
Kunal Chowdhury «IN» 31-Aug-10 5:47am    
Reason for update: removed the code formatting from the text.
Christian Graus 31-Aug-10 5:49am    
If you read it, the formatted section looks like it was a question, and the rest is an answer. Goodness knows why.
Kunal Chowdhury «IN» 31-Aug-10 5:52am    
Yes, he answered his question himself. But, maybe he was looking for some controls to implement such thing.
Sandeep Mewara 31-Aug-10 14:19pm    
Reason for my vote of 1
Did you asked anything here? Were you expecting something form us?

1 solution

You can do this using the MaskEdit TextBox. You can find one of such example here: MaskEdit Sample[^]. Search over net & you will find a huge nos. of examples.
Share this answer
suzeets 31-Aug-10 6:08am    
thanx buddy..........

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