Click here to Skip to main content
11,706,799 members (57,780 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#3.5
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.
Posted 30-Aug-10 23:23pm
Edited 30-Aug-10 23:47pm
Christian Graus at 31-Aug-10 5:30am
IS this a question and an answer ? What is going on here ?
KunalChowdhury at 31-Aug-10 5:47am
Reason for update: removed the code formatting from the text.
Christian Graus at 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.
KunalChowdhury at 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 at 31-Aug-10 14:19pm
Reason for my vote of 1
Did you asked anything here? Were you expecting something form us?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
suzeets at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 140
1 OriginalGriff 125
2 chainerlt 110
3 ppolymorphe 99
4 Mika Wendelius 70
0 OriginalGriff 9,178
1 Sergey Alexandrovich Kryukov 8,487
2 CPallini 5,189
3 Maciej Los 4,766
4 Mika Wendelius 3,696

Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 31 Aug 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100