Click here to Skip to main content
13,398,920 members (32,026 online)
Rate this:
Please Sign up or sign in to 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.
Posted 31-Aug-10 0:23am
Updated 31-Aug-10 0:47am
Christian Graus 31-Aug-10 5:30am
IS this a question and an answer ? What is going on here ?
KunalChowdhury 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.
KunalChowdhury 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

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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.180218.2 | Last Updated 31 Aug 2010
Copyright © CodeProject, 1999-2018
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